From acc81d7c06f26cae90e2f6f7b78fa77b228e60fa Mon Sep 17 00:00:00 2001
From: christophbertram <bertram@pik-potsdam.de>
Date: Thu, 26 Mar 2020 13:04:47 +0100
Subject: [PATCH] change version of gdx being used for NDC target calculation
 (now input_bau.gdx) so that correct NDC targets are also calculated for
 non-SSP2 pathways

---
 scripts/start/prepare_and_run.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/start/prepare_and_run.R b/scripts/start/prepare_and_run.R
index 6539f01..90c64e1 100644
--- a/scripts/start/prepare_and_run.R
+++ b/scripts/start/prepare_and_run.R
@@ -218,7 +218,7 @@ prepare <- function() {
   # ATTENTION: modifying gms files
   if(!is.null(cfg$gms$carbonprice) && (cfg$gms$carbonprice == "NDC2018")){
     source("scripts/input/prepare_NDC2018.R")
-    prepare_NDC2018(as.character(cfg$files2export$start["input_ref.gdx"]))
+    prepare_NDC2018(as.character(cfg$files2export$start["input_bau.gdx"]))
   } 
   ## the following is outcommented because by now it has to be done by hand ( currently only one gdx is handed to the next run, so it is impossible to fix to one run and use the tax from another run)
   ## Update CO2 tax information for exogenous carbon price runs with the same CO2 price as a previous run
-- 
GitLab