Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small update in 44_biodiversity #400

Merged
merged 7 commits into from
Jun 9, 2022
Merged

Conversation

flohump
Copy link
Contributor

@flohump flohump commented Jun 8, 2022

馃惁 Purpose of this PR 馃惁

  • Improvment and simplification for setting a lower bound for the BII

馃敡 Checklist for PR creator 馃敡

  • Low risk : Simple bugfixes (missing files, updated documentation, typos) or Start/output scripts
  • Medium risk : New realization / Changes to existing realization / Other changes which don't modify default.cfg
  • High risk : New input files (if cfg$input is changed in default.cfg) / Modification to core model (eg. changes in equations, calculations, introduction of new sets etc.) / Other changes in default.cfg
  • Providing additional information based on PR label
  • Low risk : No new model run needed.
  • Medium risk : Default run based on the current version of the fork from which PR is made
  • High risk
    • Default run from the current develop branch: MAgPIE PR399_SSP2鈭扲ef_updated3
    • Default run based on the current version of the fork from which PR is made: MAgPIE PR400_2_SSP2鈭払II0鈭扢ode1
  • 馃搲 Performance loss/gain from current default behavior 馃搱
    • run time of the default of this PR is very simliar to the current develop.

Unknown-74

Results of the default are unchanged:
Resources_Land_Cover_Cropland-69

Results for different lower bounds for the BII
cfg$gms$c44_bii_decrease <- 1: decrease of lower bound for BII is allowed in case the BII in the start year is above the provided lower bound.
Biodiversity_BII_decrease_allowed

Resources_Land_Cover_Change_Other_Land-9

cfg$gms$c44_bii_decrease <- 0: stricter implementation. No decrease of BII below the lower bound is allowed after the start year.
Biodiversity_BII_nodecrease_allowed

Resources_Land_Cover_Change_Other_Land-10

  • Added changes to CHANGELOG.md
  • Compilation check (model starts without compilation errors - use gams main.gms action=c in model folder for testing).
  • No hard coded numbers and cluster/country/region names.
  • The new code doesn't contain declared but unused parameters or variables.
  • Where relevant, In-code comments added including documentation comments.
  • Made sure that documentation created with goxygen is okay (use goxygen::goxygen() for testing).
  • Changes to magpie4 R library for post processing of model output (ideally backward compatible).
  • Self-review of my own code.
  • For high risk runs: validation of major model indicators - Land-use, emissions, food prices, Tau. %Delete this line in case it is not a high risk run%

鈿狅笍 Additional notes or warnings 鈿狅笍

NA

馃毃 Checklist for RSE reviewer 馃毃

  • PR is labeled correctly.
  • CHANGELOG is updated correctly
  • No hard coded numbers and cluster/country/region names.
  • No unnecessary increase in module interfaces
  • All required updates in interfaces (if any) have been properly adressed in the module contracts
  • In-code comments and documentation comments are satisfactory.
  • model behavior/performance is satisfactory.
  • Requested changes (if any) were applied correctly

馃毃 Checklist for MAgPIE reviewer 馃毃

  • PR is labeled correctly.
  • CHANGELOG is updated correctly
  • No hard coded numbers and cluster/country/region names.
  • Changes to the model are scientifically sound
  • In-code comments and documentation comments are satisfactory.
  • model behavior/performance is satisfactory.
  • Requested changes (if any) were applied correctly

@flohump flohump added enhancement New feature or request Minor Smaller modifications Low risk Low risk labels Jun 9, 2022
@flohump flohump marked this pull request as ready for review June 9, 2022 09:15
Copy link
Member

@tscheypidi tscheypidi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

config/default.cfg Outdated Show resolved Hide resolved
@pvjeetze
Copy link
Contributor

pvjeetze commented Jun 9, 2022

One thing also caught my attenttion: Should the BII continue to decrease even with cfg$gms$s44_bii_lower_bound <- 0 and cfg$gms$c44_bii_decrease <- 0 as is the case right now?

flohump and others added 2 commits June 9, 2022 12:10
Co-authored-by: pvjeetze <50408549+pvjeetze@users.noreply.github.com>
@flohump
Copy link
Contributor Author

flohump commented Jun 9, 2022

Good point. I changed the implemenation such that the combination of
cfg$gms$s44_bii_lower_bound <- 0
and
cfg$gms$c44_bii_decrease <- 0
produceds a no decrease sceanrio.

@flohump flohump merged commit 8404e63 into magpiemodel:develop Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low risk Low risk Minor Smaller modifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants