Skip to content

Commit 2c61b2b

Browse files
committed
Merge branch 'master' of github.com:fabm-model/fabm into part_of_state
2 parents b27013b + 6045baa commit 2c61b2b

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

.github/workflows/add-release-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Python dependencies
1414
run: python -m pip install git-archive-all
1515
- name: Clone fabm-plus
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
repository: fabm-model/fabm-plus
1919
submodules: recursive

.github/workflows/fabm.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
sudo apt-get update
4646
sudo apt-get install gfortran-${{ matrix.version }}
4747
- name: Clone repository
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v5
4949
with:
5050
submodules: recursive
5151
- name: Run all test cases with host emulators
@@ -70,7 +70,7 @@ jobs:
7070
- name: Install compiler and Python dependencies
7171
run: conda install gfortran_linux-64=${{ matrix.version }} pip pyyaml
7272
- name: Clone repository
73-
uses: actions/checkout@v4
73+
uses: actions/checkout@v5
7474
with:
7575
submodules: recursive
7676
- name: Run all test cases with host emulators
@@ -113,7 +113,7 @@ jobs:
113113
wget --no-verbose ${{ matrix.url_dir }}/l_fortran-compiler_p_${{ matrix.version }}_offline.sh
114114
/bin/sh l_fortran-compiler_p_${{ matrix.version }}_offline.sh -a --silent --cli --install-dir ${HOME}/intel --eula accept
115115
- name: Clone repository
116-
uses: actions/checkout@v4
116+
uses: actions/checkout@v5
117117
with:
118118
submodules: recursive
119119
- name: Run all test cases with host emulators
@@ -161,7 +161,7 @@ jobs:
161161
wget --no-verbose ${{ matrix.url_dir }}/${{ matrix.version }}_offline.sh
162162
/bin/sh ${{ matrix.version }}_offline.sh -a --silent --cli --install-dir ${HOME}/intel --eula accept
163163
- name: Clone repository
164-
uses: actions/checkout@v4
164+
uses: actions/checkout@v5
165165
with:
166166
submodules: recursive
167167
- name: Run all test cases with host emulators
@@ -223,7 +223,7 @@ jobs:
223223
NVHPC_INSTALL_DIR: /home/runner/nvhpc
224224
NVHPC_INSTALL_TYPE: single
225225
- name: Clone repository
226-
uses: actions/checkout@v4
226+
uses: actions/checkout@v5
227227
with:
228228
submodules: recursive
229229
- name: Run all test cases with host emulators
@@ -264,7 +264,7 @@ jobs:
264264
rm aocc-compiler-${{ matrix.version }}.tar
265265
./aocc-compiler-${{ matrix.version }}/install.sh
266266
- name: Clone repository
267-
uses: actions/checkout@v4
267+
uses: actions/checkout@v5
268268
with:
269269
submodules: recursive
270270
- name: Run all test cases with host emulators
@@ -299,7 +299,7 @@ jobs:
299299
- name: Install Python dependencies
300300
run: conda install -c conda-forge pyyaml flang>=19.0 ninja c-compiler
301301
- name: Clone repository
302-
uses: actions/checkout@v4
302+
uses: actions/checkout@v5
303303
with:
304304
submodules: recursive
305305
- name: Run all test cases with host emulators
@@ -324,7 +324,7 @@ jobs:
324324
shell: bash -el {0}
325325
steps:
326326
- name: Clone repository
327-
uses: actions/checkout@v4
327+
uses: actions/checkout@v5
328328
with:
329329
submodules: recursive
330330
- name: Set up Python ${{ matrix.python-version }} with conda
@@ -375,11 +375,11 @@ jobs:
375375
sudo apt-get update
376376
sudo apt-get install libnetcdff-dev
377377
- name: Clone FABM
378-
uses: actions/checkout@v4
378+
uses: actions/checkout@v5
379379
with:
380380
submodules: recursive
381381
- name: Clone GOTM
382-
uses: actions/checkout@v4
382+
uses: actions/checkout@v5
383383
with:
384384
repository: gotm-model/code
385385
ref: v6.0
@@ -398,7 +398,7 @@ jobs:
398398
runs-on: ubuntu-latest
399399
steps:
400400
- name: Clone FABM
401-
uses: actions/checkout@v4
401+
uses: actions/checkout@v5
402402
with:
403403
submodules: recursive
404404
- name: Download and extract cmake
@@ -414,7 +414,7 @@ jobs:
414414
runs-on: ubuntu-latest
415415
steps:
416416
- name: Clone FABM
417-
uses: actions/checkout@v4
417+
uses: actions/checkout@v5
418418
with:
419419
submodules: recursive
420420
- name: Install Ninja
@@ -433,7 +433,7 @@ jobs:
433433
shell: bash -el {0}
434434
steps:
435435
- name: Clone repository
436-
uses: actions/checkout@v4
436+
uses: actions/checkout@v5
437437
with:
438438
submodules: recursive
439439
- name: Set up Python with conda

src/test/host.F90

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ program test_host
208208
integer :: ntest = -1
209209
logical :: no_mask = .false.
210210
logical :: no_diag = .false.
211+
real(rke) :: dt = 1._rke
211212

212213
#if _FABM_DIMENSION_COUNT_>0
213214
i__ = 50
@@ -259,6 +260,10 @@ program test_host
259260
i = i + 1
260261
call get_command_argument(i, arg)
261262
read (arg,*) ntest
263+
case ('--dt')
264+
i = i + 1
265+
call get_command_argument(i, arg)
266+
read (arg,*) dt
262267
case ('-h')
263268
write (*,'(a)') ''
264269
write (*,'(a)') ''
@@ -346,7 +351,7 @@ program test_host
346351
! ======================================================================
347352

348353
call start_test('set_domain')
349-
call model%set_domain(_PREARG_LOCATION_ seconds_per_time_unit=1._rke)
354+
call model%set_domain(_PREARG_LOCATION_ seconds_per_time_unit=dt)
350355
call report_test_result()
351356

352357
! ======================================================================
@@ -815,7 +820,7 @@ subroutine simulate(n)
815820
call cpu_time(time_begin)
816821

817822
do i = 1, n
818-
call model%prepare_inputs()
823+
call model%prepare_inputs(real(i, rke))
819824

820825
_BEGIN_OUTER_HORIZONTAL_LOOP_
821826
flux = 0

util/developers/environment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
bottom_depth: 10
2+
bottom_depth_below_geoid: 10
23
bottom_stress: 0.01
34
cell_thickness: 10
45
density: 1020

0 commit comments

Comments
 (0)