Difference between revisions of "How to add namelist variables"

From openwfm
Jump to navigation Jump to search
Line 7: Line 7:
 
==See also==
 
==See also==
 
* [[namelist.input]]
 
* [[namelist.input]]
 +
* [[namelist.fire]]

Revision as of 06:16, 17 May 2019

  1. 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.)
  2. 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.
  3. Add a line to copy the value from config_flags into the variable in module_fr_sfire_driver.F subroutine set_flags


See also