Skip to content
Snippets Groups Projects
Commit 3987611b authored by Lavinia Baumstark's avatar Lavinia Baumstark
Browse files

remove start_functions.R, adapt start_bundle_climate.R

parent b36b2b3b
No related branches found
No related tags found
1 merge request!34Refactoring start scripts (yeah!)
This diff is collapsed.
...@@ -4,10 +4,15 @@ ...@@ -4,10 +4,15 @@
# | AGPL-3.0, you are granted additional permissions described in the # | AGPL-3.0, you are granted additional permissions described in the
# | REMIND License Exception, version 1.0 (see LICENSE file). # | REMIND License Exception, version 1.0 (see LICENSE file).
# | Contact: remind@pik-potsdam.de # | Contact: remind@pik-potsdam.de
source("scripts/start_functions.R")
require(lucode, quietly = TRUE, warn.conflicts = FALSE) require(lucode, quietly = TRUE, warn.conflicts = FALSE)
source("scripts/start/submit.R")
source("scripts/start/choose_slurmConfig.R")
# Choose submission type
slurmConfig <- choose_slurmConfig()
.setgdxcopy <- function(needle, stack, new) { .setgdxcopy <- function(needle, stack, new) {
# delete entries in stack that contain needle and append new # delete entries in stack that contain needle and append new
out <- c(stack[-grep(needle, stack)], new) out <- c(stack[-grep(needle, stack)], new)
...@@ -55,6 +60,7 @@ for (scen in rownames(scenarios)) { ...@@ -55,6 +60,7 @@ for (scen in rownames(scenarios)) {
source("config/default.cfg") source("config/default.cfg")
# Have the log output written in a file (not on the screen) # Have the log output written in a file (not on the screen)
cfg$slurmConfig <- slurmConfig
cfg$logoption <- 2 cfg$logoption <- 2
cfg$sequential <- NA cfg$sequential <- NA
...@@ -124,6 +130,6 @@ for (scen in rownames(scenarios)) { ...@@ -124,6 +130,6 @@ for (scen in rownames(scenarios)) {
| is.na(settings[scen,"path_gdx_ref"])){ | is.na(settings[scen,"path_gdx_ref"])){
cat("Starting: ",scen,"\n") cat("Starting: ",scen,"\n")
load(paste0(scen,".RData")) load(paste0(scen,".RData"))
start_run(cfg) submit(cfg)
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment