3 #***********************************************************************
4 #* GNU Lesser General Public License
6 #* This file is part of the GFDL Flexible Modeling System (FMS).
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
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 # Set common test settings.
25 if [ -z "${skipflag}" ]; then
26 # create and enter directory for in/output files
29 cat <<_EOF > diag_table.yaml
30 title: test_subregional
31 base_date: 2 1 1 0 0 0
34 # This is to test a file with multiple z axis
35 - file_name: test_subZaxis
52 - file_name: test_subregional
73 - file_name: test_subregional2
97 # remove any existing files that would result in false passes during checks
101 printf "&diag_manager_nml \n use_modern_diag=.true. \n/" |
cat > input.nml
102 test_expect_success
"Running diag_manager with different subregions (test $my_test_count)" '
103 mpirun -n 6 ../test_reduction_methods
106 cat <<_EOF > diag_table.yaml
107 title: test_corner_subregional
108 base_date: 2 1 1 0 0 0
110 - file_name: test_corner1
117 output_name: var2c_avg
126 - file_name: test_corner2
133 output_name: var2c_avg
142 - file_name: test_corner3
149 output_name: var2c_avg
160 my_test_count
=`expr $my_test_count + 1`
161 printf "&diag_manager_nml \n use_modern_diag=.true. \n/" |
cat > input.nml
162 test_expect_success
"Running diag_manager with corner diagnotics (test $my_test_count)" '
163 mpirun -n 6 ../test_reduction_methods
166 my_test_count
=`expr $my_test_count + 1`
167 test_expect_success
"Checking results from diag_manager with different subregions (test $my_test_count)" '
168 mpirun -n 1 ../check_subregional