Skip to content

Commit

Permalink
allow for default cice initial conditions (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice authored Aug 23, 2024
1 parent 5277a17 commit 6413086
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions payu_config/setup_scripts/setup_cice_restarts.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
# patch for https://github.com/open-mpi/ompi/issues/12141
if ! [ -f work/access-om3.cice.r.* ]; then
if [ -f work/access-om3.cice.r.* ] ; then
# change restart symlink to hardlink
RESTART=$(echo work/access-om3.cice.r.*)
ln -f $(readlink $RESTART) $RESTART
elif [ -f work/INPUT/iced.1900-01-01-10800.nc ]; then
# no restart files yet, use initial conditions
IC=$(readlink work/INPUT/iced.1900-01-01-10800.nc)
rm work/INPUT/iced.1900-01-01-10800.nc
cp $IC work/INPUT/iced.1900-01-01-10800.nc
else
# change restart symlink to hardlink
RESTART=$(echo work/access-om3.cice.r.*)
ln -f $(readlink $RESTART) $RESTART
fi

0 comments on commit 6413086

Please sign in to comment.