-
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.
generalise support for cice filenames (#22)
* generalise support for cice filenames --------- Co-authored-by: minghangli-uni <minghang.li1@anu.edu.au> Co-authored-by: minghang.li <minghangl1101@gmail.com>
- Loading branch information
1 parent
efb2167
commit 5277a17
Showing
5 changed files
with
89 additions
and
49 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
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
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
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,13 +1,12 @@ | ||
#!/bin/bash | ||
# patch for https://github.com/open-mpi/ompi/issues/12141 | ||
if ! [ -f work/access-om3.cice.r.* ] | ||
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 | ||
if ! [ -f work/access-om3.cice.r.* ]; 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 | ||
# change restart symlink to hardlink | ||
RESTART=$(echo work/access-om3.cice.r.*) | ||
ln -f $(readlink $RESTART) $RESTART | ||
fi |
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