Skip to content

site%rxfire_area_f* variables never initialized #1470

@samsrabin

Description

@samsrabin

These site variables:

fates/main/EDTypesMod.F90

Lines 458 to 460 in 27a5b40

real(r8) :: rxfire_area_fuel ! daily total burnable area [m2] when burn window present and fuel condition met
real(r8) :: rxfire_area_fi ! daily total burnable area [m2] when burn window present, fuel and fire intensity condition met
real(r8) :: rxfire_area_final ! daily total burnable area [m2] when all conditions met

are not initialized in EdInitMod. That's not necessarily a problem for rxfire_area_final, since it's set to zero at the beginning of CalculateRxFireAreaBurnt(). However, the other two variables are seemingly a different story. They are calculated in CalculateSurfaceFireIntensity() like so:

fates/fire/SFMainMod.F90

Lines 409 to 412 in 27a5b40

if (currentSite%fireWeather%rx_flag == itrue .and. rxfire_fuel_check) then
! record burnable area after fuel load check
currentSite%rxfire_area_fuel = currentSite%rxfire_area_fuel + currentPatch%area

fates/fire/SFMainMod.F90

Lines 419 to 420 in 27a5b40

if (is_rxfire) then
currentSite%rxfire_area_fi = currentSite%rxfire_area_fi + currentPatch%area ! record burnable area after FI check

But they are never set to zero. I would think they'd need to be set to zero at the top of CalculateSurfaceFireIntensity() in order for those accumulations to make sense.

But then looking at results from FATES baselines of ERS_Ld60.f45_f45_mg37.I2000Clm60FatesRs.derecho_intel.clm-FatesColdManagedFire, I see they're all zero. How? Is it just luck? Because during my edge flammability work I'm suddenly getting numbers like this in SMS_D.1x1_brazil.I2000Clm60FatesSpCruRsGs.derecho_gnu.clm-FatesColdSatPhen for no apparent reason, where in canonical FATES they're all zero:

 FATES_RXFIRE_BURNABLE_FI = 7.47696422132747e+243 ;

 FATES_RXFIRE_BURNABLE_FINAL = 7.28299721731371e+219 ;

 FATES_RXFIRE_BURNABLE_FUEL = 3.2052447740124e-84 ;

Those diffs gets resolved if I set the site variables to 0 in zero_site().

CC @XiulinGao

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

❕Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions