Skip to content

Commit

Permalink
Update st_archive and lt_archive with multiple bug fixes.
Browse files Browse the repository at this point in the history
Update st_archive to remove creation of hardlinks between
[comp]/rest and rest/[dname] which caused problems with both
HPSS (duplicate files) and the copying of restart sets. Remove
the DOUT_S_SAVE_EVERY_NTH_RESTART_FILE_SET option in favor of
a different option to select which days of the month to save - not yet
implimented. Test lt_archive with new batch system code and ensure HPSS
queue submission works on YS. Waiting to test on NERSC.

Test suite: ERR.f19_g16.B1850W
Test baseline:  N/A
Test namelist changes: N/A
Test status: bit for bit

Fixes: #308

Code review:
  • Loading branch information
bertinia committed Nov 23, 2015
1 parent fddbba4 commit cecd14f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/Tools/st_archive
Original file line number Diff line number Diff line change
Expand Up @@ -647,16 +647,15 @@ sub moveFiles
}
#
# also get the file that matches the dname for this suffix and
# add remove from the the restdir to delete duplicates
# copy to the restdir for a complete restart set
#
my @restFiles = grep(/${dname}/, @files);
if( $#restFiles == 0 ) {
my @path = split /\//, $restFiles[$#restFiles];
if ( $#path >= 0 ) {
$restFile = $path[$#path];
if ( -f $dest . "/" . $restFile ) {
## link ( $dest . "/" . $restFile, $restdir . "/" . $restFile );
unlink( $dest . "/" . $restFile );
copy( $dest . "/" . $restFile, $restdir . "/" . $restFile );
}
}
}
Expand Down

0 comments on commit cecd14f

Please sign in to comment.