Skip to content

Commit

Permalink
change relative path in lenkf.j to abs path
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyuan-jiang committed Mar 25, 2024
1 parent bbdaaa7 commit 613980f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Applications/LDAS_App/ldas_setup
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,8 @@ class LDASsetup:
if self.ladas_coupling > 0:
fout.write(line.replace('MY_ADAS_EXPDIR', self.rqdExeInp['ADAS_EXPDIR']))
else :
fout.write(line.replace('MY_EXPDIR',self.exphome+'/$EXPID'))
my_expdir = self.exphome + '/' + self.rqdExeInp['EXP_ID']
fout.write(line.replace('MY_EXPDIR',my_expdir))

sp.call(['chmod', '755', 'lenkf.j'])

Expand Down
8 changes: 4 additions & 4 deletions src/Applications/LDAS_App/lenkf.j.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Batch Parameters for Run Job
#######################################################################

#SBATCH --output=../scratch/GEOSldas_log_txt
#SBATCH --error=../scratch/GEOSldas_err_txt
#SBATCH --output=MY_EXPDIR/scratch/GEOSldas_log_txt
#SBATCH --error=MY_EXPDIR/scratch/GEOSldas_err_txt
#SBATCH --account=MY_ACCOUNT
#SBATCH --time=MY_WALLTIME
#SBATCH --nodes=MY_NODES --ntasks-per-node=MY_NTASKS_PER_NODE
Expand All @@ -21,8 +21,8 @@
#PBS -N MY_JOB
#PBS -q MY_QOS
#PBS -W group_list=MY_ACCOUNT
#PBS -o ../scratch/GEOSldas_log_txt
#PBS -e ../scratch/GEOSldas_err_txt
#PBS -o MY_EXPDIR/scratch/GEOSldas_log_txt
#PBS -e MY_EXPDIR/scratch/GEOSldas_err_txt
#PBS -j oe

#######################################################################
Expand Down

0 comments on commit 613980f

Please sign in to comment.