Skip to content

Commit

Permalink
add tests for more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored and rem1776 committed Jul 28, 2023
1 parent 3a7d6b2 commit 8be0313
Show file tree
Hide file tree
Showing 2 changed files with 369 additions and 175 deletions.
29 changes: 22 additions & 7 deletions test_fms/time_interp/test_time_interp2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# This is part of the GFDL FMS package. This is a shell script to
# execute tests in the test_fms/mpp directory.

# Ed Hartnett 11/29/19
# Ed Hartnett 11/49/19

# Set common test settings.
. ../test-lib.sh
Expand All @@ -34,20 +34,35 @@ rm -rf INPUT
mkdir INPUT
# Run the test.
test_expect_success "test time interpolation with r8_kind" '
mpirun -n 2 ./test_time_interp_r8
mpirun -n 4 ./test_time_interp_r8
'
test_expect_success "test time interpolation with r4_kind" '
mpirun -n 2 ./test_time_interp_r4
mpirun -n 4 ./test_time_interp_r4
'

rm -rf INPUT
mkdir INPUT

test_expect_success "test time interpolation external with r8_kind" '
mpirun -n 2 ./test_time_interp_external_r8
# nml for calender type
cat <<_EOF > input.nml
&test_time_interp_external_nml
cal_type="julian"
/
_EOF

test_expect_success "test time interpolation external with r8_kind (julian)" '
mpirun -n 4 ./test_time_interp_external_r8
'
test_expect_success "test time interpolation external with r4_kind (julian)" '
mpirun -n 4 ./test_time_interp_external_r4
'
sed -i 's/julian/no_leap/' input.nml

test_expect_success "test time interpolation external with r8_kind (no_leap)" '
mpirun -n 4 ./test_time_interp_external_r8
'
test_expect_success "test time interpolation external with r4_kind" '
mpirun -n 2 ./test_time_interp_external_r4
test_expect_success "test time interpolation external with r4_kind (no_leap)" '
mpirun -n 4 ./test_time_interp_external_r4
'

test_done
Loading

0 comments on commit 8be0313

Please sign in to comment.