Skip to content

Commit

Permalink
finalize making fire_ros.exe and README in standalone wrf-model#3 wrf…
Browse files Browse the repository at this point in the history
  • Loading branch information
janmandel committed Aug 11, 2022
1 parent bb23d51 commit c2b394c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
12 changes: 2 additions & 10 deletions standalone/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ MOISTURE_OBJ = \

#.PHONY: all

default: fire
default: fire.exe fire_ros.exe

moisture: moisture.exe
moisture.exe: $(MAKEFILE) libesmf_time.a $(MOISTURE_OBJ)
Expand All @@ -107,17 +107,9 @@ fuel_interp_test: fuel_interp_test.exe
fuel_interp_test.exe: $(MAKEFILE) $(FUEL_INTERP_OBJ)
$(FC) $(FCFLAGS) -o fuel_interp_test.exe $(FUEL_INTERP_OBJ)

all: fire init

atm: atm.exe
cd $(WRF)/test/em_fire; rm -f atm.exe; ln -s ../../standalone/atm.exe atm.exe

fire: fire.exe
cd $(WRF)/test/em_fire; rm -f fire.exe; ln -s ../../standalone/fire.exe fire.exe

init: init.exe
cd $(WRF)/test/em_fire; rm -f init.exe; ln -s ../../standalone/init.exe init.exe

atm.exe: $(MAKEFILE) atm.o $(FIRE_OBJ)
$(FC) $(FCFLAGS) -o atm.exe fire.o $(FIRE_OBJ) $(LDFLAGS)

Expand Down Expand Up @@ -195,7 +187,7 @@ module_fr_sfire_driver.o: $(MAKEFILE) \
sfire_id.inc \
module_domain.o \
module_configure.o \
module_fr_sfire_phys.o \
module_fr_sfire_phys.o \
module_fr_sfire_model.o \
module_fr_sfire_atm.o \
module_fr_sfire_util.o
Expand Down
26 changes: 19 additions & 7 deletions standalone/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@ This directory contains SFIRE (the fire component of wrf-fire) test driver.
It builds the fire executable from the files sources WRF-SFIRE, files generated
in a WRF-SFIRE build, and the files in this directory.

How to build and test:
How to build standalone:

1. build WRF-SFIRE as usual: cd ..; ./configure; compile em_fire
2. back here: cd standalone
1. build WRF-SFIRE as usual: cd ..; ./configure; compile em_fire (not required for make fire_ros.exe)
2. go back here: cd standalone
3. Select compiler: ln -s make.inc.ifort make.inc or one of the others or make your own
4. Build fire.exe: make
5. Create atmospheric forcing: cd test/em_fire/hill; ideal.exe; wrf.exe
6. link atmospheric forcing: ln -s the_wrfout_just_created fire_input.nc
7. Fun the standalone: ../fire.exe
4. make or make <nameofexecutable>.exe

All standalone executables should be run in the simulation directory where wrf.exe runs.
They use the inputs available to wrf.exe such as namelist.input and namelist.fire, etc.

fire.exe is the complete fire model running with atmosphere from WRF-SFIRE output. To use:

1. Create atmospheric forcing: cd test/em_fire/hill; ideal.exe; wrf.exe
2. link atmospheric forcing: ln -s the_wrfout_just_created fire_input.nc
3. Run the standalone in the simulation directoryt: <WRF SFIRE ROOT>/standalone/fire.exe

fire_ros.exe calls the fuels and rate of spread (ROS) subsystem. To use:
1. Run the standalone in the simulation directory: <WRF SFIRE ROOT>/standalone/fire_ros.ex
This will create Matlab file fuels.m. Follow the directions to use it in Matlab at
https://wiki.openwfm.org/wiki/How_to_diagnose_fuel_properties_in_WRF-SFIRE


Files:

Expand Down

0 comments on commit c2b394c

Please sign in to comment.