Difference between revisions of "Porting WRF-SFIRE fuel moisture model to WRF4"

From openwfm
Jump to navigation Jump to search
Line 8: Line 8:
 
* This is how it is in this stage of the code for testing, but has changed in further commits after 2011-09-26 so it will be different after the port is completed.
 
* This is how it is in this stage of the code for testing, but has changed in further commits after 2011-09-26 so it will be different after the port is completed.
 
==Testing of <tt>fmc_g</tt> added==
 
==Testing of <tt>fmc_g</tt> added==
* Get the test code:
+
Get the test code:
 
<pre>
 
<pre>
 
git clone ssh://git@github.com/openwfm/WRF-Fire-merge.git
 
git clone ssh://git@github.com/openwfm/WRF-Fire-merge.git
Line 16: Line 16:
 
</pre>
 
</pre>
 
to make sure you are at commit {{wrf-fire-merge-commit|132444f0db67544179c7998f5653c488dd41e836|}}.  
 
to make sure you are at commit {{wrf-fire-merge-commit|132444f0db67544179c7998f5653c488dd41e836|}}.  
* Build on kingspeak following [[How_to_build_WRF4#University_of_Utah_CHPC]]
+
Build on kingspeak following [[How_to_build_WRF4#University_of_Utah_CHPC]] and run the basic hill test case:
* Run the basic hill test case:
 
 
<pre>
 
<pre>
 
cd test/em_fire
 
cd test/em_fire
Line 27: Line 26:
 
fire_fmc_read=0
 
fire_fmc_read=0
 
</pre>
 
</pre>
in namelist input. This will change as more of wrf-fire is incorporated. But fmc_g in wrfinput has to be set by other means, such as using [https://github.com/openwfm/wrf-fire/blob/master/other/Matlab/netcdf/ncreplace.m ncreplace] in Matlab.
+
in namelist input. This will change as more of wrf-fire is merged in. In any case, fmc_g in wrfinput has to be set by other means, such as using [https://github.com/openwfm/wrf-fire/blob/master/other/Matlab/netcdf/ncreplace.m ncreplace] in Matlab.
* To run real problem, build WPS for this WRF. Variable fmc_g should be in wrfinput but not set, you have to set it by other means.
+
 
* Testing to be done:
+
To run real problem, build WPS for this WRF. Variable fmc_g should be in wrfinput but not set, you have to set it by other means.
** WRF4 built from {{wrf-branch|develop}} and this version should give the same results (with fire_fmc_read=0 in namelist.input, or not set)
+
 
** From the testing I have already done it seems that the code is slow. I do not know why. I do not know if that is already the case for WRF4 (currently at 4.0.3). Compare speed with wrf-fire on the hill problem.
+
Testing to be done:
** A real problem
+
* WRF4 built from {{wrf-branch|develop}} and this version should give the same results (with fire_fmc_read=0 in namelist.input, or not set)
 +
* From the testing I have already done it seems that the code is slow. I do not know why. I do not know if that is already the case for WRF4 (currently at 4.0.3). Compare speed with wrf-fire on the hill problem.
 +
* A real problem
  
 
==Continued progress==
 
==Continued progress==

Revision as of 14:29, 23 January 2019

Initial progress

Testing of fmc_g added

Get the test code:

git clone ssh://git@github.com/openwfm/WRF-Fire-merge.git
cd WRF-Fire-merge
git checkout added-fmc_g
git log

to make sure you are at commit 132444f0db67544179c7998f5653c488dd41e836 . Build on kingspeak following How_to_build_WRF4#University_of_Utah_CHPC and run the basic hill test case:

cd test/em_fire
./ideal.exe
./wrf.exe >& wrf.log &

This will use fuel moisture from namelist.fire. To read fmc_g from wrfinput, set

fire_fmc_read=0

in namelist input. This will change as more of wrf-fire is merged in. In any case, fmc_g in wrfinput has to be set by other means, such as using ncreplace in Matlab.

To run real problem, build WPS for this WRF. Variable fmc_g should be in wrfinput but not set, you have to set it by other means.

Testing to be done:

  • WRF4 built from branch develop and this version should give the same results (with fire_fmc_read=0 in namelist.input, or not set)
  • From the testing I have already done it seems that the code is slow. I do not know why. I do not know if that is already the case for WRF4 (currently at 4.0.3). Compare speed with wrf-fire on the hill problem.
  • A real problem

Continued progress

The WRF4 code with the fuel moisture model from wrf-fire is being created in branch fuel-moisture-model. It is not ready for testing yet.

The original plan (one out of several actually)

Too much complexity. There were quite a few conflicts already in cherry pick to 3cdb542af7ce submitted to 3.3 where not much changed. After a day or so, I decided I may as well do it right.

See also