Skip to content

Commit

Permalink
Merge pull request #1425 from dklein-pik/develop
Browse files Browse the repository at this point in the history
MAgPIE coupling: bugfix: correctly construct names in knownRefRuns
  • Loading branch information
dklein-pik authored Oct 4, 2023
2 parents ae567f4 + 174b6b1 commit 28b6ee0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions start_bundle_coupled.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ message("max_iterations: ", max_iterations)

common <- intersect(rownames(settings_remind), rownames(scenarios_coupled))
knownRefRuns <- apply(expand.grid(prefix_runname , common, "-rem-", seq(max_iterations)), 1, paste, collapse="")
knownRefRuns <- gsub(" ", "", knownRefRuns) # if max_iterations has two digits apply in the line above introduces whitespaces before the single-digit iterations ("rem- 9"). Remove them.

if (! identical(common, character(0))) {
message("\n################################\n")
message("The following ", length(common), " scenarios will be started:")
Expand Down

0 comments on commit 28b6ee0

Please sign in to comment.