fix: improve modern diag manager performance (#1634)
[FMS.git] / test_fms / astronomy / test_astronomy.sh
blob9d108d5fd52658a22e7c9eab5569dadcbe942a73
1 #!/bin/sh
3 #***********************************************************************
4 #* GNU Lesser General Public License
5 #*
6 #* This file is part of the GFDL Flexible Modeling System (FMS).
7 #*
8 #* FMS is free software: you can redistribute it and/or modify it under
9 #* the terms of the GNU Lesser General Public License as published by
10 #* the Free Software Foundation, either version 3 of the License, or (at
11 #* your option) any later version.
13 #* FMS is distributed in the hope that it will be useful, but WITHOUT
14 #* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 #* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #* for more details.
18 #* You should have received a copy of the GNU Lesser General Public
19 #* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
20 #***********************************************************************
22 # This is part of the GFDL FMS package. This is a shell script to
23 # execute tests in the test_fms/astronomy directory.
25 # Caitlyn McAllister
27 # Set common test settings.
28 . ../test-lib.sh
30 # Prepare the directory to run the tests.
31 cat <<EOF > input.nml
32 &astronomy_nml
33 num_angles=1
35 EOF
37 # Run the test.
39 test_expect_success "Test astronomy: r4_kind" '
40 mpirun -n 2 ./test_astronomy_r4
43 test_expect_success "Test astronomy: r8_kind" '
44 mpirun -n 2 ./test_astronomy_r8
47 test_done