diff --git a/config/settings_config.csv b/config/settings_config.csv index 9d081d75e..ba05072a1 100644 --- a/config/settings_config.csv +++ b/config/settings_config.csv @@ -1,54 +1,29 @@ - ;climate|off;growth|exogenous;growth|endogenous;growth|spillover;biomass|exogenous;biomass|magpie_hightccost;fossil|timeDepGrades;fossil|grades;fossil|polynomial;fossil|simple;fossil|exogenous;transport|simple;techpol|none;techpol|moderate;techpol|stringent;techpol|eur;techpol|lowCarbonPush;techpol|CombLowCandCoalPO;techpol|coalPhaseout;emicapregi|none;emicapregi|CandC;emicapregi|GDPint;emicapregi|POPint;emicapregi|exog;emicapregi|exogMod;emicapregi|exogMod2;emicapregi|exogStr;emicapregi|exogMT;emicapregi|exogG8;banking|off;banking|banking;banking|bankborrow;carbonprice|none;optimization|negishi;optimization|nash;optimization|testOneRegi;cm_emiscen|0;cm_emiscen|1;cm_emiscen|2;cm_emiscen|3;cm_emiscen|4;cm_emiscen|5;cm_emiscen|8;cm_emiscen|9;cm_rcp_scen|none;cm_rcp_scen|26;cm_iterative_target_adj|1;tax|off;cm_fetaxscen|1;cm_fetaxscen|2;codePerformance|on;cm_IndCCSscen|1;buildings|simple;industry|fixed_shares -climate|off;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1 -growth|exogenous;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1 -growth|endogenous;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1 -growth|spillover;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1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1;1;0;1;1;1;1;1;1;1 -cm_iterative_target_adj|1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;0;0;1;1;0;1;1;1;1;1;1;1;1 -tax|off;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;1;1;1 -cm_fetaxscen|1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1 -cm_fetaxscen|2;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1 -buildings|simple;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1 -industry|fixed_shares;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1 + ;climate|off;techpol|lowCarbonPush;techpol|CombLowCandCoalPO;techpol|coalPhaseout;emicapregi|none;emicapregi|CandC;emicapregi|GDPint;emicapregi|POPint;emicapregi|exog;carbonprice|none;optimization|negishi;optimization|nash;optimization|testOneRegi;cm_emiscen|0;cm_emiscen|1;cm_emiscen|2;cm_emiscen|3;cm_emiscen|4;cm_emiscen|5;cm_emiscen|8;cm_emiscen|9;cm_rcp_scen|none;cm_rcp_scen|26;cm_iterative_target_adj|1;tax|off;cm_fetaxscen|1;cm_fetaxscen|2;codePerformance|on;cm_IndCCSscen|1 +climate|off;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;0;0;1;1;1;1;1;1;1;1;1 +industry|simple;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0 +techpol|lowCarbonPush;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1 +techpol|CombLowCandCoalPO;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1 +techpol|coalPhaseout;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1 +emicapregi|none;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1 +emicapregi|CandC;1;1;1;1;1;1;1;1;1;1;1;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1 +emicapregi|GDPint;1;1;1;1;1;1;1;1;1;1;1;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1 +emicapregi|POPint;1;1;1;1;1;1;1;1;1;1;1;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1 +emicapregi|exog;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1 +carbonprice|none;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;0;1 +optimization|negishi;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1 +optimization|nash;1;0;0;0;1;0;0;0;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1 +optimization|testOneRegi;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1 +cm_emiscen|0;1;1;1;1;1;0;0;0;1;1;1;1;1;1;1;0;0;0;0;0;1;1;1;0;1;1;1;0;1 +cm_emiscen|1;1;1;1;1;1;0;0;0;1;1;1;1;1;1;1;0;0;0;0;0;1;1;1;0;1;1;1;0;1 +cm_emiscen|2;0;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;0;0;0;0;0;0;1;0;1;1;1;0;1 +cm_emiscen|3;0;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;1;0;0;0;0;0;1;0;1;1;1;0;1 +cm_emiscen|4;1;1;1;1;0;1;1;1;0;1;0;1;1;0;0;0;0;1;0;0;1;0;1;0;1;1;1;0;1 +cm_emiscen|5;0;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;1;0;1;0;0;0;1;1;1;0;1 +cm_emiscen|8;0;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;1;0;0;1;0;1;1;1;0;1 +cm_emiscen|9;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;0;0;1;1;0;1;0;1;1;1;1;1;1;1 +cm_rcp_scen|0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;1;1;1;1;1;1;1;1 +cm_rcp_scen|1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;0;1;1;1;1;1 +cm_iterative_target_adj|1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;0;0;1;1;0;1;1;1;1;1;1 +tax|off;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;1 +cm_fetaxscen|1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1 +cm_fetaxscen|2;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1 diff --git a/main.gms b/main.gms index a1ba02627..9628bc90d 100755 --- a/main.gms +++ b/main.gms @@ -374,7 +374,7 @@ $setglobal emicapregi none !! def = none *' * (none): no tax policy (combined with all emiscens except emiscen = 9) *' * (exponential): 5% exponential increase over time of the tax level in 2020 set via cm_co2_tax_2020 (combined with emiscen = 9 and cm_co2_tax_2020>0) *' * (expoLinear): 5% exponential increase until c_expoLinear_yearStart, linear increase thereafter -*' * (exogenous): carbon price is specified using an external input file or using the switch cm_regiExoPrice +*' * (exogenous): carbon price is specified using an external input file or using the switch cm_regiExoPrice. Requires cm_emiscen = 9 and cm_iterative_target_adj = 0 *' * (linear): linear increase over time of the tax level in 2020 set via cm_co2_tax_2020 (combined with emiscen = 9 and cm_co2_tax_2020>0) *' * (temperatureNotToExceed): [test and verify before using it!] Find the optimal carbon carbon tax (set cm_emiscen = 1, iterative_target_adj = 9] curved convergence of CO2 prices between regions until cm_CO2priceRegConvEndYr; developed countries have linear path from 0 in 2010 through cm_co2_tax_2020 in 2020; *' * (diffCurvPhaseIn2Lin): [REMIND 2.1 default for validation peakBudget runs, in combination with iterative_target_adj = 9] curved convergence of CO2 prices between regions until cm_CO2priceRegConvEndYr; developed countries have linear path from 0 in 2010 through cm_co2_tax_2020 in 2020; diff --git a/modules/45_carbonprice/exogenous/datainput.gms b/modules/45_carbonprice/exogenous/datainput.gms index 10b7006e5..26e4d31a0 100644 --- a/modules/45_carbonprice/exogenous/datainput.gms +++ b/modules/45_carbonprice/exogenous/datainput.gms @@ -9,7 +9,7 @@ *** CO2 Tax level ***---------------------------- -if((cm_emiscen eq 9), +if((cm_emiscen eq 9 AND cm_iterative_target_adj eq 0), p45_tau_co2_tax(ttot, regi) = 0; @@ -21,7 +21,7 @@ pm_taxCO2eq(ttot,regi)$(ttot.val ge 2005) = p45_tau_co2_tax(ttot,regi); else pm_taxCO2eq(ttot,regi)$(ttot.val ge 2005) = 0; -abort "Error: Please set cm_emiscen to 9"; +abort "Error: Please set cm_emiscen to 9 and cm_iterative_target_adj to 0"; ); *** EOF ./modules/45_carbonprice/exogenous/datainput.gms diff --git a/modules/45_carbonprice/exogenous/not_used.txt b/modules/45_carbonprice/exogenous/not_used.txt index 58ad010b8..e8a8105be 100644 --- a/modules/45_carbonprice/exogenous/not_used.txt +++ b/modules/45_carbonprice/exogenous/not_used.txt @@ -9,7 +9,6 @@ cm_co2_tax_2020, switch, ??? sm_c_2_co2,switch, ??? pm_ttot_val,parameter,??? cm_co2_tax_growth,switch,??? -cm_iterative_target_adj,switch,??? cm_expoLinear_yearStart,switch,??? vm_co2eq,variable,??? vm_emiFgas,input,questionnaire diff --git a/modules/45_carbonprice/exogenous/realization.gms b/modules/45_carbonprice/exogenous/realization.gms index f9a59ec2a..42f4f533e 100644 --- a/modules/45_carbonprice/exogenous/realization.gms +++ b/modules/45_carbonprice/exogenous/realization.gms @@ -6,7 +6,9 @@ *** | Contact: remind@pik-potsdam.de *** SOF ./modules/45_carbonprice/exogenous/realization.gms -*#' @description This realization implements carbon price trajectories from an exogenous file (p45_tau_co2_tax.inc). +*#' @description This realization implements carbon price trajectories from an exogenous file (p45_tau_co2_tax.inc). +*#' Alternatively, specify in 'path_gdx_carbonprice' the run to be used +*#' Requires cm_emiscen = 9 and cm_iterative_target_adj = 0 *####################### R SECTION START (PHASES) ############################## diff --git a/output.R b/output.R index c7784266d..e836c11cc 100755 --- a/output.R +++ b/output.R @@ -99,6 +99,8 @@ choose_slurmConfig_output <- function(output) { slurm_options <- paste(slurm_options[1:3], "--mem=32000") } else if ("reporting" %in% output) { slurm_options <- grep("--mem=[0-9]*[0-9]{3}", slurm_options, value = TRUE) + } else if ("fixOnRef" %in% output && length(output) == 1) { + slurm_options <- c("direct", slurm_options) } if (length(slurm_options) == 1) { @@ -220,11 +222,10 @@ if (comp %in% c("comparison", "export")) { } } else { # comp = single # define slurm class or direct execution - outputInteractive <- c("plotIterations", "fixOnRef", "integratedDamageCosts") + outputInteractive <- c("plotIterations", "integratedDamageCosts") if (! exists("source_include")) { if (any(output %in% outputInteractive)) { slurmConfig <- "direct" - flags <- c(flags, "--interactive") # to tell scripts they can run in interactive mode } # if this script is not being sourced by another script but called from the command line via Rscript let the user # choose the slurm options @@ -235,6 +236,9 @@ if (comp %in% c("comparison", "export")) { if (slurmConfig %in% c("priority", "short", "standby")) { slurmConfig <- paste0("--qos=", slurmConfig, " --nodes=1 --tasks-per-node=1") } + if (isTRUE(slurmConfig %in% "direct")) { + flags <- c(flags, "--interactive") # to tell scripts they can run in interactive mode + } } else { # if being sourced by another script execute the output scripts directly without sending them to the cluster slurmConfig <- "direct"