-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow for default cice initial conditions (#25)
- Loading branch information
1 parent
5277a17
commit 6413086
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |