forked from magpiemodel/magpie
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request magpiemodel#509 from flohump/f_Fix2020
Bugfix cropland module - consistent results until 2020
- Loading branch information
Showing
7 changed files
with
44 additions
and
27 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,21 +5,19 @@ | |
*** | MAgPIE License Exception, version 1.0 (see LICENSE file). | ||
*** | Contact: [email protected] | ||
|
||
$ifthen "%c30_bioen_type%" == "all" bioen_type_30(kbe30) = yes; | ||
$else bioen_type_30("%c30_bioen_type%") = yes; | ||
$endif | ||
|
||
$ifthen "%c30_bioen_water%" == "all" bioen_water_30(w) = yes; | ||
$else bioen_water_30("%c30_bioen_water%") = yes; | ||
$endif | ||
|
||
*' @code | ||
*' First, all 2nd generation bioenergy area is fixed to zero, irrespective of type and | ||
*' rainfed/irrigation. | ||
vm_area.fx(j,kbe30,w)=0; | ||
*' Second, the bounds for 2nd generation bioenergy area are released depending on | ||
*' the dynamic sets bioen_type_30 and bioen_water_30. | ||
vm_area.up(j,bioen_type_30,bioen_water_30)=Inf; | ||
*' SSP2 default settings are used for the historic period. | ||
if(m_year(t) <= sm_fix_SSP2, | ||
vm_area.up(j,kbe30,"rainfed") = Inf; | ||
else | ||
vm_area.up(j,bioen_type_30,bioen_water_30) = Inf; | ||
); | ||
|
||
*' @stop | ||
|
||
*' No penalties or fallows exist in this realization | ||
|
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,21 +5,18 @@ | |
*** | MAgPIE License Exception, version 1.0 (see LICENSE file). | ||
*** | Contact: [email protected] | ||
|
||
$ifthen "%c30_bioen_type%" == "all" bioen_type_30(kbe30) = yes; | ||
$else bioen_type_30("%c30_bioen_type%") = yes; | ||
$endif | ||
|
||
$ifthen "%c30_bioen_water%" == "all" bioen_water_30(w) = yes; | ||
$else bioen_water_30("%c30_bioen_water%") = yes; | ||
$endif | ||
|
||
*' @code | ||
*' First, all 2nd generation bioenergy area is fixed to zero, irrespective of type and | ||
*' rainfed/irrigation. | ||
vm_area.fx(j,kbe30,w)=0; | ||
*' Second, the bounds for 2nd generation bioenergy area are released depending on | ||
*' the dynamic sets bioen_type_30 and bioen_water_30. | ||
vm_area.up(j,bioen_type_30,bioen_water_30)=Inf; | ||
*' SSP2 default settings are used for the historic period. | ||
if(m_year(t) <= sm_fix_SSP2, | ||
vm_area.up(j,kbe30,"rainfed") = Inf; | ||
else | ||
vm_area.up(j,bioen_type_30,bioen_water_30) = Inf; | ||
); | ||
*' @stop | ||
|
||
*' @code | ||
|
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,21 +5,18 @@ | |
*** | MAgPIE License Exception, version 1.0 (see LICENSE file). | ||
*** | Contact: [email protected] | ||
|
||
$ifthen "%c30_bioen_type%" == "all" bioen_type_30(kbe30) = yes; | ||
$else bioen_type_30("%c30_bioen_type%") = yes; | ||
$endif | ||
|
||
$ifthen "%c30_bioen_water%" == "all" bioen_water_30(w) = yes; | ||
$else bioen_water_30("%c30_bioen_water%") = yes; | ||
$endif | ||
|
||
*' @code | ||
*' First, all 2nd generation bioenergy area is fixed to zero, irrespective of type and | ||
*' rainfed/irrigation. | ||
vm_area.fx(j,kbe30,w)=0; | ||
*' Second, the bounds for 2nd generation bioenergy area are released depending on | ||
*' the dynamic sets bioen_type_30 and bioen_water_30. | ||
vm_area.up(j,bioen_type_30,bioen_water_30)=Inf; | ||
*' SSP2 default settings are used for the historic period. | ||
if(m_year(t) <= sm_fix_SSP2, | ||
vm_area.up(j,kbe30,"rainfed") = Inf; | ||
else | ||
vm_area.up(j,bioen_type_30,bioen_water_30) = Inf; | ||
); | ||
*' @stop | ||
|
||
*' @code | ||
|