Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCaitSith committed Oct 24, 2023
1 parent a1d8006 commit 3484ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions functions/cycling_da.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def submit_job(dir_script, script_name, whether_wait, nodes, ntasks, account, pa
time.sleep(sleep_interval)
print(f'Finish running the job')

def run_wps_and_real(data_library_name, dir_case, case_name, exp_name, period, whether_wait, nodes, ntasks, account, partition, nodelist=''):
def run_wps_and_real(data_library_name, dir_case, case_name, exp_name, wps_version, period, whether_wait, nodes, ntasks, account, partition, nodelist=''):

# Import the necessary library
module = importlib.import_module(f"data_library_{data_library_name}")
Expand Down Expand Up @@ -295,7 +295,7 @@ def run_wps_and_real(data_library_name, dir_case, case_name, exp_name, period, w
run_wps = fo.change_content(run_wps_dir)
run_wps.substitude_string('#SBATCH -J', ' ', initial_time_str[2::])
run_wps.substitude_string('export SCRATCH_DIRECTORY', '=', folder_dir)
run_wps.substitude_string('ln -sf $WORK_DIRECTORY/WPS/ungrib/Variable_Tables', '/', f"{vtable} $RUN_WRF_DIRECTORY/Vtable")
run_wps.substitude_string(f"ln -sf $WORK_DIRECTORY/{wps_version}/ungrib/Variable_Tables", '/', f"{vtable} $RUN_WRF_DIRECTORY/Vtable")

if boundary_data_deterministic == 'GFS':
run_wps.substitude_string('$RUN_WRF_DIRECTORY/link_grib.csh $SCRATCH_DIRECTORY/Boundary_Condition_Data', '/', 'gfs* $RUN_WRF_DIRECTORY')
Expand Down
4 changes: 2 additions & 2 deletions functions/generate_gefs_ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def download_gefs_ensemble(data_library_name, dir_case, case_name):

forecast_ntime += forecast_interval

def run_wps_and_real_gefs(data_library_name, dir_case, case_name, ref_exp_name,
def run_wps_and_real_gefs(data_library_name, dir_case, case_name, ref_exp_name, wps_version,
whether_wait, nodes, ntasks, account, partition, nodelist=''):

# Import the necessary library
Expand Down Expand Up @@ -223,7 +223,7 @@ def run_wps_and_real_gefs(data_library_name, dir_case, case_name, ref_exp_name,
run_wps = fo.change_content(run_wps_dir)
run_wps.substitude_string('#SBATCH -J', ' ', initial_time_str[2::])
run_wps.substitude_string('export SCRATCH_DIRECTORY', '=', folder_dir)
run_wps.substitude_string('ln -sf $WORK_DIRECTORY/WPS/ungrib/Variable_Tables', '/', f"{vtable} $RUN_WRF_DIRECTORY/Vtable")
run_wps.substitude_string(f"ln -sf $WORK_DIRECTORY/{wps_version}/ungrib/Variable_Tables", '/', f"{vtable} $RUN_WRF_DIRECTORY/Vtable")
run_wps.substitude_string('$RUN_WRF_DIRECTORY/link_grib.csh $SCRATCH_DIRECTORY/Boundary_Condition_Data', '/', 'gep* $RUN_WRF_DIRECTORY')
run_wps.save_content()

Expand Down

0 comments on commit 3484ff0

Please sign in to comment.