Description
The FBH configuration fails in debug mode with unintialized variables
To Reproduce:
Compile and run the FB test in debug mode
### ATM-FBH test ###
COMPILE | atm_fbh | intel | -DAPP=ATMF -DCCPP_SUITES=FV3_HRRR -D32BIT=ON -DDEBUG=ON| - wcoss2 noaacloud acorn | fv3 |
RUN | cpld_regional_atm_fbh | - wcoss2 noaacloud acorn | baseline |
It fails with
+ '[' NO = WHEN_RUNNING ']'
+ srun --label --distribution=block:block -n 31 ./fv3.exe
30: forrtl: error (182): floating invalid - possible uninitialized real/complex variable.
30: Image PC Routine Line Source
30: libc.so.6 0000146C87AE3D90 Unknown Unknown Unknown
30: fv3.exe 0000000009415E12 fire_behavior_nuo 797 fire_behavior_nuopc.F90
This change fixes at least this initial failure
diff --git a/state/state_mod.F90 b/state/state_mod.F90
index ce9fb9a..bee0e22 100644
--- a/state/state_mod.F90
+++ b/state/state_mod.F90
@@ -149,7 +149,7 @@
allocate (this%fz0(ifms:ifme, jfms:jfme))
allocate (this%fuel_time(ifms:ifme, jfms:jfme))
allocate (this%fire_psfc(ifms:ifme, jfms:jfme))
- allocate (this%fire_rain(ifms:ifme, jfms:jfme))
+ allocate (this%fire_rain(ifms:ifme, jfms:jfme), source=0.0)
allocate (this%fire_t2(ifms:ifme, jfms:jfme))
allocate (this%fire_q2(ifms:ifme, jfms:jfme))
allocate (this%fire_rh_fire(ifms:ifme, jfms:jfme))
Description
The FBH configuration fails in debug mode with unintialized variables
To Reproduce:
Compile and run the FB test in debug mode
It fails with
This change fixes at least this initial failure