Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions io/namelist_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ module namelist_mod
integer :: fast_dist_reinit_freq = 600 ! Number of time steps to perform a reinit with fast distance reinit method

real :: fire_wind_height = 6.096 ! "height of uah,vah wind in fire spread formula" "m"
integer :: wind_vinterp_opt = 0 ! "mid-flame height wind interpolation option: 0) Interp to specified height, 1) Use WAFs"
integer :: hinterp_opt = 1 ! "Horizontal interpolation from atm to fire (offline option): 1) ngp, 2)bi-linear"
integer :: wind_vinterp_opt = 1 ! "mid-flame height wind interpolation option: 0) Interp to specified height, 1) Use WAFs"
integer :: hinterp_opt = 2 ! "Horizontal interpolation from atm to fire (offline option): 1) ngp, 2)bi-linear"
logical :: fire_lsm_zcoupling = .false. ! "flag to activate reference velocity at a different height from fire_wind_height"
real :: fire_lsm_zcoupling_ref = 50.0 ! "reference height from wich u at fire_wind_hegiht is calculated using a logarithmic profile" "m"

Expand Down Expand Up @@ -411,8 +411,8 @@ subroutine Init_fire_block (this, file_name)
integer :: fmoist_freq = 0 ! "frequency to run moisture model 0: use fmoist_dt, k>0: every k timesteps" "1"
real :: fmoist_dt = 600 ! "moisture model time step" "s"
real :: fire_wind_height = 6.096 ! "height of uah,vah wind in fire spread formula" "m"
integer :: wind_vinterp_opt = 0 ! "mid-flame height wind interpolation option: 0) Interp to specified height, 1) Use WAFs"
integer :: hinterp_opt = 1 ! "Horizontal interpolation from atm to fire (offline option): 1) ngp, 2) bi-linear"
integer :: wind_vinterp_opt = 1 ! "mid-flame height wind interpolation option: 0) Interp to specified height, 1) Use WAFs"
integer :: hinterp_opt = 2 ! "Horizontal interpolation from atm to fire (offline option): 1) ngp, 2) bi-linear"
logical :: fire_is_real_perim = .false. ! .false. = point/line ignition, .true. = observed perimeter"
real :: frac_fburnt_to_smoke = 0.02 ! "parts per unit of burned fuel becoming smoke " "g_smoke/kg_air"
real :: fuelmc_g = 0.08 ! Fuel moisture content ground (Dead FMC)
Expand Down
11 changes: 4 additions & 7 deletions io/wrf_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -728,13 +728,10 @@ subroutine Interp_var2grid (this, lats_out, lons_out, ifms, ifme, jfms, jfme, &
case ('rain')
var_wrf = this%rain

case ('fz0')
var_wrf = this%z0

case ('uf')
case ('ua')
var_wrf = this%ua

case ('vf')
case ('va')
var_wrf = this%va

case default
Expand Down Expand Up @@ -1129,10 +1126,10 @@ subroutine Update_atm_state (this, datetime_now, config_flags)
call this%Get_q2 (datetime_now)
call this%Get_psfc (datetime_now)
call this%Get_rain (datetime_now)
call this%Get_z0 (datetime_now)

select case (config_flags%wind_vinterp_opt)
case (VINTERP_WINDS_FROM_3D_WINDS)
call this%Get_z0 (datetime_now)
call this%Get_u3d (datetime_now)
call this%Get_v3d (datetime_now)
call this%Get_phl (datetime_now)
Expand Down Expand Up @@ -1164,7 +1161,7 @@ subroutine Update_atm_state (this, datetime_now, config_flags)
call this%Destroy_u3d ()
call this%Destroy_v3d ()
call this%Destroy_phl ()
! call this%Destroy_z0 ()
call this%Destroy_z0 ()

case (VINTERP_WINDS_FROM_10M_WINDS)
call this%Get_u10 (datetime_now)
Expand Down
8 changes: 2 additions & 6 deletions state/state_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -780,17 +780,13 @@ subroutine Interpolate_vars_atm_to_fire (this, wrf, config_flags)
if (.not. allocated (this%lats) .or. .not. allocated (this%lons)) &
call Stop_simulation ('Init lats/lons before calling hinterp atm variables')

if (this%datetime_now == this%datetime_start) call wrf%Interp_var2grid (this%lats, this%lons, &
this%ifms, this%ifme, this%jfms, this%jfme, config_flags%num_tiles, this%i_start, this%i_end, &
this%j_start, this%j_end, 'fz0', config_flags%hinterp_opt, this%fz0)

call wrf%Interp_var2grid (this%lats, this%lons, this%ifms, this%ifme, this%jfms, this%jfme, &
config_flags%num_tiles, this%i_start, this%i_end, this%j_start, this%j_end, &
'uf', config_flags%hinterp_opt, this%uf)
'ua', config_flags%hinterp_opt, this%uf)

call wrf%Interp_var2grid (this%lats, this%lons, this%ifms, this%ifme, this%jfms, this%jfme, &
config_flags%num_tiles, this%i_start, this%i_end, this%j_start, this%j_end, &
'vf', config_flags%hinterp_opt, this%vf)
'va', config_flags%hinterp_opt, this%vf)

if (config_flags%wind_vinterp_opt == 1) then
call this%Apply_wafs ()
Expand Down
2 changes: 2 additions & 0 deletions tests/test7/namelist.fire
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
end_second = 10
dt = 0.5
interval_output = 1
num_tiles = 16,
/

&atm
Expand All @@ -35,5 +36,6 @@
fire_atm_feedback = 1.0, ! real, multiplier for heat fluxes, 1.=normal, 0.=turn off two-way coupling
fire_viscosity = 0.4, ! artificial viscosity in level set method (max 1, needed with fire_upwinding=0)
fire_upwinding = 9, ! 0=none, 1=standard, 2=godunov, 3=eno, 4=sethian
wind_vinterp_opt = 0,
/

18 changes: 9 additions & 9 deletions tests/test8.s
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ then

test=$(diff ./file1.dat ./file2.dat | wc -l)
# Here we allow one difference since we are not expecting bit4bit results
echo $test
# echo $test
if [ $test -eq 4 ]
then
echo ' Ignore this difference:'
Expand All @@ -105,8 +105,9 @@ then
grep "$var" $file_wrf | awk '{print $2, $7}' > ./file2.dat

test=$(diff ./file1.dat ./file2.dat | wc -l)
echo $test
if [ $test -eq 8 ]
# echo $test
# Here we allow one difference since we are not expecting bit4bit results
if [ $test -eq 4 ]
then
echo ' Ignore this difference:'
diff ./file1.dat ./file2.dat
Expand All @@ -130,12 +131,11 @@ then
grep "$var" $file_wrf | awk '{print $2, $7}' > ./file2.dat

test=$(diff ./file1.dat ./file2.dat | wc -l)
echo $test
# Here we allow one difference since we are not expecting bit4bit results
if [ $test -eq 4 ]
# echo $test
if [ $test -eq 0 ]
then
echo ' Ignore this difference:'
diff ./file1.dat ./file2.dat
# echo ' Ignore this difference:'
# diff ./file1.dat ./file2.dat
echo ' Test8.4 PASSED'
n_test_passed=$(expr $n_test_passed + 1)
else
Expand All @@ -157,7 +157,7 @@ then

test=$(diff ./file1.dat ./file2.dat | wc -l)
# Here we allow one difference since we are not expecting bit4bit results
echo $test
# echo $test
if [ $test -eq 8 ]
then
echo ' Ignore this difference:'
Expand Down
2 changes: 2 additions & 0 deletions tests/test8/namelist.fire
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
end_second = 10
dt = 0.5
interval_output = 1
num_tiles = 16,
/

&atm
Expand All @@ -37,5 +38,6 @@
fire_upwinding = 9, ! 0=none, 1=standard, 2=godunov, 3=eno, 4=sethian
fmoist_run = .true., ! Run fuel moisture model
fmoist_freq = 1, ! Fuel moisture model updated every time step
wind_vinterp_opt = 0
/

2 changes: 2 additions & 0 deletions tests/testx/namelist.fire
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
end_second = 10
dt = 0.5
interval_output = 1
num_tiles = 16,
/

&atm
Expand All @@ -35,6 +36,7 @@
fire_atm_feedback = 1.0, ! real, multiplier for heat fluxes, 1.=normal, 0.=turn off two-way coupling
fire_viscosity = 0.4, ! artificial viscosity in level set method (max 1, needed with fire_upwinding=0)
fire_upwinding = 9, ! 0=none, 1=standard, 2=godunov, 3=eno, 4=sethian
wind_vinterp_opt = 0
/

&ideal
Expand Down