CABLE-LSM / benchcab

Tool for evaluation of CABLE land surface model
https://benchcab.readthedocs.io/en/latest/
Apache License 2.0
2 stars 4 forks source link

Should we add a reverse patch option? #92

Closed SeanBryan51 closed 1 year ago

SeanBryan51 commented 1 year ago

We should cater for the use case when a branch does not support a namelist parameter in the base namelist file. See here for example. Ideally the user should not remove namelist parameters from the base namelist file as this will effect the namelist parameters for all branches.

Should we add a "reverse patch" option for each branch that will remove a given namelist parameter for that branch? And should we keep the base namelist file internal to benchcab to prevent users from modifying the base namelist file?

ccarouge commented 1 year ago

Ideally, this would not be needed as branches that are compared together are not too old. So this is only needed to deal with historical cases. We'll have to see whether it is worth the effort to implement a reverse patch. Or am I missing a use-case?

The namelist file should be internal to benchcab but only if we have a reverse patch or we reach the state we don't need a reverse patch.

SeanBryan51 commented 1 year ago

Yes this issue is related to running legacy CABLE branches. Also, we discussed a while back that we should not rely on the default values for namelist parameters. If we remove a parameter from base namelist file like what was done in GW example above, we are depending on the default value in every branch which could be problematic.

ccarouge commented 1 year ago

OK, let's implement it.

ccarouge commented 1 year ago

Let's not put the namelist internal to benchcab because this could be problematic if we decide to split the namelist file into several files.