Namelists - input.nml considered harmful #969
Replies: 2 comments
-
Adding that
I think something of this kind would improve flexibility a lot. |
Beta Was this translation helpful? Give feedback.
-
several times i wanted to use dart routines in standalone utilities (e.g. the time manager routines), but requiring an input.nml in the current running directory made the utility useless. i experimented with a version of the utilities_mod.f90 that had a routine to set the option to NOT require an input.nml. the result ran, but you did have to worry about how to set the options you wanted which would have been set by the namelist (e.g. the calendar type from the time manager namelist, the error status level from utilities namelist, etc). i think having an alternate here is generally useful beyond the crocodile needs. i don't know if my try at not requiring an nml file is the right solution - perhaps being able to name the namelist file and putting it in any directory might be enough. e.g. my "print_doy" program could live in my own ~/bin directory, and always use ~/bin/print_doy.nml as its namelist. (i don't know about current fortran compilers, but i believe older ones had problems with using files in other directories so that could be an issue with this approach.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
DART namelist file is hardcoded as input.nml
Throwing some thoughts out there:
Beta Was this translation helpful? Give feedback.
All reactions