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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ED2IN clean up #411

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mpaiao
Copy link
Contributor

@mpaiao mpaiao commented Jan 2, 2025

Deleted several variables that used to modify PFT and turbulence parameters from ED2IN.

Description

Several variables in ED2IN modified parameters (mostly PFT parameters), which conflicted with the XML approach of modifying them. The code was streamlined so parameters are now exclusively managed by the XML interface.

Another related change is that NL%IPHEN_SCHEME no longer defines the leaf phenology strategy: these now must be set through XML (parameter phenology). Instead, NL%IPHEN_SCHEME simply defines whether to use the predicted cold-deciduous phenology (NL%IPHEN_SCHEME = 0) based on Botta et al. (2000), or the prescribed leaf phenology (NL%IPHEN_SCHEME = 1) described in Medvigy et al. (2009).

Collaborators

Motivation and Context

This change is long due and reduces confusion between the roles of ED2IN (model approaches and site-specific quantities) and the xml files (PFT-specific or site-independent parameters).

Some turbulence-related parameters (not PFT-specific) required a different approach, because they are defined through namelist when running in coupled mode. In this case, XML still has the last word in ED2, but if they are not set from XML, then the code prioritise the values from RAMSIN over the ED2 defaults.

As a minor change, some non-standard characters in comments were removed from the code, to improve portability to text editors.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

Changes to documentation will be applied once the pull request is approved and merged.

Testing :

  • All new and existing tests passed.

mpaiao added 2 commits January 2, 2025 07:22
…obal parameters,

which should be initialised through XML. Also, variable IPHEN_SCHEME in ED2IN changed
meaning, now it only controls whether to use predicted or prescribed phenology for cold
deciduous. The leaf phenology strategy of each PFT must be defined through XML.
@mpaiao mpaiao requested review from xiangtaoxu and mdietze January 2, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant