-
Notifications
You must be signed in to change notification settings - Fork 19
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
Specify ESMF Config File via environment variable? #2845
Comments
|
Sorry - I think my previous answer misunderstood where the question was going. This should be an issue for We could then consider somehow maintaining both variants inside MAPL for simplicity so that if things change we correct both. (Ideally these top files do very very little though.) |
Using |
This issue has been automatically marked as stale because it has not had activity in the last 60 days. If there are no updates within 7 days, it will be closed. You can add the ":hourglass: Long Term" label to prevent the stale action from closing this issue. |
@darianboggs Did we ever get something like this in? |
For MAPL3, we will do this by virtue of the ESMF_Initialize() call accepting a config file that can specify ESMF logging level. Would be nice if MAPL2 does it that way too, but I've not looked to see if that conflicts with other choices. |
This issue has been automatically marked as stale because it has not had activity in the last 60 days. If there are no updates within 7 days, it will be closed. You can add the ":hourglass: Long Term" label to prevent the stale action from closing this issue. |
Un-staling. I should work on this. This should be a very simple addition to MAPL. |
…-var Fixes #2845. Allow ESMF_CONFIG_FILE to specify ESMF control file
In talking with @darianboggs about some ESMF stuff I was reminded of #2233 which fixed #2133, a request from @lizziel to allow the ability to set the ESMF logging level via a file rather than via command line option.
But, it is hardcoded that the file name is
ESMF.rc
and nothing else. Now, in MAPL3 land, this will need to be (or should be) a YAML file. So that meansESMF.yml
orESMF.yaml
.But but, @darianboggs reminded me that
get_environment_variable
does exist in Fortran.So my thinking is maybe we should do something like:
ESMF_CONTROL_FILE
or whatever (@tclune will have good opinions on this). If found, check if the file ends in.rc
,.yml
or.yaml
. If so, feed that in. (Note: I believe ESMF depends on a file ending in.yml
or.yaml
to trigger hconfig, so we would want to enforce that and then it makes our life easy if we sayESMF_Config
files end in.rc
.)ESMF.rc
,ESMF.yml
orESMF.yaml
, and use thatNow, I suppose, the command line argument should maybe "win" this battle, but I also know the arguments might be going away in favor of yamls so... 🤷🏼
I suppose the question is: would this be useful? I can sort of see maybe having a set of control files for scripting purposes with different names and then using the environment variable to select?
The text was updated successfully, but these errors were encountered: