From 649ffe5cff6b2ed34275dd1c629d9b6f4bc6499d Mon Sep 17 00:00:00 2001 From: Michaja Pehl Date: Thu, 12 Jan 2023 12:05:18 +0100 Subject: [PATCH] fix #1156 broken fixing of industry to exogenous scenarios --- modules/37_industry/subsectors/bounds.gms | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/37_industry/subsectors/bounds.gms b/modules/37_industry/subsectors/bounds.gms index 072add744..0a26d096e 100755 --- a/modules/37_industry/subsectors/bounds.gms +++ b/modules/37_industry/subsectors/bounds.gms @@ -62,9 +62,12 @@ if (cm_emiscen ne 1, !! not a BAU scenario ); !! Fix industry output for Bal and EnSec scenario -$ifthen.policy_scenario (("%cm_indstExogScen%" == "forecast_bal") OR ("%cm_indstExogScen%" == "forecast_ensec")) !! cm_indstExogScen +$if "%cm_indstExogScen%" == "forecast_bal" $set cm_indstExogScen_set "YES" +$if "%cm_indstExogScen%" == "forecast_ensec" $set cm_indstExogScen_set "YES" +$ifthen.policy_scenario "%cm_indstExogScen_set%" == "YES" vm_cesIO.fx(t,regi,in)$( p37_industry_quantity_targets(t,regi,in) ) = p37_industry_quantity_targets(t,regi,in); $endif.policy_scenario +$drop cm_indstExogScen_set *** EOF ./modules/37_industry/subsectors/bounds.gms