Skip to content

Commit

Permalink
some more diagnostics to check on extinction moisture
Browse files Browse the repository at this point in the history
  • Loading branch information
janmandel committed Sep 27, 2012
1 parent 3d4e642 commit 49ab03c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions wrfv2_fire/phys/module_fr_sfire_phys.F
Expand Up @@ -1119,9 +1119,11 @@ subroutine set_fire_params( &
! test fmc
if(fp%r_0(i,j) > 1e-6 .and. fp%fmc_g(i,j) > fuelmce(k))then
!$OMP CRITICAL(SFIRE_PHYS_CRIT)
write(msg,'(a,2i6,3(a,e13.5))') 'set_fire_params: at ',i,j,' base rate of spread',fp%r_0(i,j),' moisture ',fp%fmc_g(i,j),'> extinction =',fuelmce(k)
write(msg,'(a,2i6,3(a,e14.6))') 'set_fire_params: at ',i,j,' base rate of spread',fp%r_0(i,j),' moisture ',fp%fmc_g(i,j),'> extinction =',fuelmce(k)
call message(msg)
write(msg,'(5(a,e14.6))')'rtemp1=',rtemp1,' etam=',etam
!$OMP END CRITICAL(SFIRE_PHYS_CRIT)
call crash(msg)
call crash('propagation above extinction moisture')
endif
endif
enddo
Expand Down Expand Up @@ -1401,6 +1403,14 @@ subroutine fire_ros_cawfe(ros_back,ros_wind,ros_slope, &
ros_wind=-999.
ros_slope=-999.
endif
k = int(fp%nfuel_cat(i,j))
ros=ros_back+ros_wind+ros_slope
if(ros > 1e-6 .and. fp%fmc_g(i,j) > fuelmce(k))then
!$OMP CRITICAL(SFIRE_PHYS_CRIT)
write(msg,'(a,2i6,3(a,e13.5))') 'fire_ros_cawfe: at ',i,j,' rate of spread',ros,' moisture ',fp%fmc_g(i,j),'> extinction =',fuelmce(k)
!$OMP END CRITICAL(SFIRE_PHYS_CRIT)
call crash(msg)
endif
!
else ! chaparral model from Clark et al 2004
! .... spread rate has no dependency on fuel character, only windspeed.
Expand Down Expand Up @@ -1440,14 +1450,6 @@ subroutine fire_ros_cawfe(ros_back,ros_wind,ros_slope, &
!write(msg,*)i,j,' speed=',speed,' tanphi',tanphi,' ros=',ros_back,ros_wind,ros_slope
!call message(msg)
k = int(fp%nfuel_cat(i,j))
ros=ros_back+ros_wind+ros_slope
if(ros > 1e-6 .and. fp%fmc_g(i,j) > fuelmce(k))then
!$OMP CRITICAL(SFIRE_PHYS_CRIT)
write(msg,'(a,2i6,3(a,e13.5))') 'set_fire_params: at ',i,j,' rate of spread',ros,' moisture ',fp%fmc_g(i,j),'> extinction =',fuelmce(k)
!$OMP END CRITICAL(SFIRE_PHYS_CRIT)
call crash(msg)
endif
return
contains
Expand Down

0 comments on commit 49ab03c

Please sign in to comment.