From 613980f2f70c0cac82f5bdbe3eafb803a220f0bb Mon Sep 17 00:00:00 2001 From: Weiyuan Jiang Date: Mon, 25 Mar 2024 10:44:38 -0400 Subject: [PATCH] change relative path in lenkf.j to abs path --- src/Applications/LDAS_App/ldas_setup | 3 ++- src/Applications/LDAS_App/lenkf.j.template | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Applications/LDAS_App/ldas_setup b/src/Applications/LDAS_App/ldas_setup index 6c1eada8..6cf1c5ae 100755 --- a/src/Applications/LDAS_App/ldas_setup +++ b/src/Applications/LDAS_App/ldas_setup @@ -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']) diff --git a/src/Applications/LDAS_App/lenkf.j.template b/src/Applications/LDAS_App/lenkf.j.template index 7f6afcb0..7324b768 100644 --- a/src/Applications/LDAS_App/lenkf.j.template +++ b/src/Applications/LDAS_App/lenkf.j.template @@ -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 @@ -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 #######################################################################