Skip to content

Commit

Permalink
remove undefined env variable
Browse files Browse the repository at this point in the history
	modified:   ldas_run.csh
  • Loading branch information
saraqzhang committed Oct 6, 2021
1 parent 3f10056 commit 5fac454
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/Applications/GEOSdas_App/ldas_run.csh
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ if ( $stage == 0 ) then

# submit job and capture job ID
set jobldas = "$LDHOME/run/lenkf.j"
set jobIDlong = `$PBS_BIN/sbatch $jobldas`
set jobIDlong = `sbatch $jobldas`
set jobID = `echo $jobIDlong |awk -F'[ ]' '{print $4}'`
setenv ldasJobIDs $jobID
echo $ldasJobIDs ": LDAS coupling lenkf jobID for central das "
echo $jobID > $FVWORK/ldasJobIDs.txt
ls -l $FVWORK/ldasJobIDs.txt
echo $jobID ": LDAS jobID for central das in ldasJobIDs.txt"

## back to fvwork
cd $FVWORK
Expand All @@ -127,15 +128,17 @@ if ( $stage == 0 ) then
else
cd $FVWORK
echo " ${MYNAME}: LDAS coupling: stage/link LdasIncr for AGCM corrector "
if ($?ldasJobIDs) then
set ldasJobIDs = `cat ldasJobIDs.txt`
echo " ldasJobIDs : ${ldasJobIDs} "
$FVROOT/bin/jobIDfilter -w $ldasJobIDs
unsetenv ldasJobIDs
endif
/bin/mv $FVWORK/ldasJobIDs.txt $FVWORK/ldasJobIDs.txt.${yyyymmddhh}
echo " ${MYNAME}: job monitoring is done"


set lenkf_status_file = ${FVWORK}/lenkf_job_completed.txt
rm -f $lenkf_status_file
/bin/rm -f $lenkf_status_file

cp $LDHOME/run/lenkf_job_completed.txt $lenkf_status_file
/bin/cp $LDHOME/run/lenkf_job_completed.txt $lenkf_status_file

set lenkf_status = `cat $lenkf_status_file`
echo $lenkf_status
Expand Down

0 comments on commit 5fac454

Please sign in to comment.