fix: improve modern diag manager performance (#1634)
[FMS.git] / test_fms / affinity / test_affinity2.sh
blobabff3e79431ad0a19b603761b38e43fa77e1476a
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 # Copyright (c) 2021 Seth Underwood
24 . ../test-lib.sh
26 # Copy and rename namelist file.
27 cat <<_EOF > input.nml
28 &test_affinity_nml
30 _EOF
32 if test "x$mpi_launcher" != "xsrun"; then
33 SKIP_TESTS="$SKIP_TESTS $(basename $0 .sh).1"
36 test_expect_success "FMS affinity places MPI processes correctly on slurm" '
37 mpirun -n 6 ./test_affinity
40 test_done