Skip to content

Commit

Permalink
improve function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongchen Zhang committed Dec 9, 2023
1 parent 739c024 commit 2031e54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/assim.sequential/R/sda.enkf_MultiSite.R
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,11 @@ sda.enkf.multisite <- function(settings,
paste(file.path(rundir, 'runs.txt')) ## testing
Sys.sleep(0.01) ## testing
if(control$parallel_qsub){
PEcAn.remote::qsub_parallel(settings, files=PEcAn.remote::merge_job_files(settings, control$jobs.per.file), prefix = paste0(obs.year, ".nc"))
if (is.null(control$jobs.per.file)) {
PEcAn.remote::qsub_parallel(settings, prefix = paste0(obs.year, ".nc"))
} else {
PEcAn.remote::qsub_parallel(settings, files=PEcAn.remote::merge_job_files(settings, control$jobs.per.file), prefix = paste0(obs.year, ".nc"))
}
}else{
PEcAn.workflow::start_model_runs(settings, write=settings$database$bety$write)
}
Expand Down

0 comments on commit 2031e54

Please sign in to comment.