Difference between revisions of "How to add namelist variables"
Jump to navigation
Jump to search
m (Jmandel moved page How to add variables to namelist.input to How to add namelist variables) |
|
(No difference)
|
Revision as of 06:16, 17 May 2019
- Edit Registry/registry.fire to add a config line. It should be clear from the lines already there how. Use NumTLev 1. Then you need to put the variable in namelist.input line only once. If you use MaxLevels, Otherwise you will need to guess how many levels there are and hit the correct one. (Ideally, the finest level where the fire model lives, should be the first, then it would not matter, but we are not so lucky, many models are configured so that the finest domain is the last. We really should have used 1 from the beginning always. Oh well.)
- Add declaration of the variable and its default value to the list at the beginning of phys/module_fr_sfire_util.F. That will make the variable known anywhere in phys/module_fr_sfire_*.F. Please use the same name for this variable as in the registry, lest a confusion ensues.
- Add a line to copy the value from config_flags into the variable in module_fr_sfire_driver.F subroutine set_flags