-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
let preempted and resumed runs start their subsequent runs
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
|
||
run <- function(start_subsequent_runs = TRUE) { | ||
run <- function() { | ||
|
||
load("config.Rdata") | ||
|
||
|
@@ -175,7 +175,7 @@ run <- function(start_subsequent_runs = TRUE) { | |
# Use the name to check whether it is a coupled run (TRUE if the name ends with "-rem-xx") | ||
coupled_run <- grepl("-rem-[0-9]{1,2}$",cfg$title) | ||
# Don't start subsequent runs form here if REMIND runs coupled. They are started in start_coupled.R instead. | ||
start_subsequent_runs <- (start_subsequent_runs | isTRUE(cfg$restart_subsequent_runs)) & !coupled_run | ||
start_subsequent_runs <- ! isFALSE(cfg$restart_subsequent_runs) && ! coupled_run | ||
|
||
if (start_subsequent_runs & (length(rownames(cfg$RunsUsingTHISgdxAsInput)) > 0)) { | ||
# track whether any subsequent run was actually started | ||
|