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 # Copyright (c) 2021 Seth Underwood
26 # Copy and rename namelist file.
27 cat <<_EOF > input.nml
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