Skip to content

Commit

Permalink
don't print subsequent runs while running ./start.R --gamscompile
Browse files Browse the repository at this point in the history
  • Loading branch information
orichters committed Aug 16, 2023
1 parent 64288b8 commit 34c98fb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions start.R
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,13 @@ if (any(c("--reprepare", "--restart") %in% flags)) {
}
}
# print names of runs to be waited and subsequent runs if there are any
if (! start_now && ( ! "--gamscompile" %in% flags || "--interactive" %in% flags)) {
message(" Waiting for: ", paste(unique(cfg$files2export$start[path_gdx_list][! gdx_specified & ! gdx_na]), collapse = ", "))
}
if (length(rownames(cfg$RunsUsingTHISgdxAsInput)) > 0) {
message(" Subsequent runs: ", paste(rownames(cfg$RunsUsingTHISgdxAsInput), collapse = ", "))
if (! "--gamscompile" %in% flags || "--interactive" %in% flags) {
if (! start_now) {
message(" Waiting for: ", paste(unique(cfg$files2export$start[path_gdx_list][! gdx_specified & ! gdx_na]), collapse = ", "))
}
if (length(rownames(cfg$RunsUsingTHISgdxAsInput)) > 0) {
message(" Subsequent runs: ", paste(rownames(cfg$RunsUsingTHISgdxAsInput), collapse = ", "))
}
}
}
message("")
Expand Down

0 comments on commit 34c98fb

Please sign in to comment.