Skip to content

Commit

Permalink
bug fixes for write config sipnet function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongchen Zhang committed Dec 6, 2023
1 parent 0a2b302 commit 5488a49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/sipnet/R/write.configs.SIPNET.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ write.config.SIPNET <- function(defaults, trait.values, settings, run.id, inputs
jobsh <- gsub("@BINARY@", settings$model$binary, jobsh)
jobsh <- gsub("@REVISION@", settings$model$revision, jobsh)

gsub("@CPCMD@", cpcmd, jobsh)
gsub("@RMOUTDIRCMD@", rmoutdircmd, jobsh)
gsub("@RMRUNDIRCMD@", rmrundircmd, jobsh)
jobsh <- gsub("@CPCMD@", cpcmd, jobsh)
jobsh <- gsub("@RMOUTDIRCMD@", rmoutdircmd, jobsh)
jobsh <- gsub("@RMRUNDIRCMD@", rmrundircmd, jobsh)

if(is.null(settings$state.data.assimilation$NC.Prefix)){
settings$state.data.assimilation$NC.Prefix <- "sipnet.out"
Expand Down

0 comments on commit 5488a49

Please sign in to comment.