Hi I am running a final CLMBGC spinup simulation using CLM5 from ctsm5.1.dev118 with a sparse grid within the CONUS. The model crashed after more than 100 simulation years due to an "erroneous arithmetic operation":
777: Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.
777:
777: Backtrace for this error:
777: #0 0x7fd3e5ce5dbf in ???
777: #1 0xc70f3f in phasechangeh2osfc
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/biogeophys/SoilTemperatureMod.F90:921
777: #2 0xca686b in __soiltemperaturemod_MOD_soiltemperature
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/biogeophys/SoilTemperatureMod.F90:485
777: #3 0x5d4636 in __clm_driver_MOD_clm_drv
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/main/clm_driver.F90:1231
777: #4 0x58d492 in modeladvance
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/cpl/nuopc/lnd_comp_nuopc.F90:904
The codes around line 921 in SoilTemperatureMod.F90 are:
if (z_avg > 0._r8) then
rho_avg=min(800._r8,h2osno_total(c)/z_avg)
else
rho_avg=200._r8
endif
However, when I restart the simulation using the last restart file from this run, the model runs through the simulation year when it encountered the arithmetic error . After more than 100 simulation years, it crashes again because of the same error, and once again, it runs well if I restart the simulation using the last restart files I saved (I saved the restart file every 20 simulation years). So, I was wondering if it is potentially some kind of accumulation bug? I would appreciate any comments regarding this error. Thank you very much!
777: Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.
777:
777: Backtrace for this error:
777: #0 0x7fd3e5ce5dbf in ???
777: #1 0xc70f3f in phasechangeh2osfc
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/biogeophys/SoilTemperatureMod.F90:921
777: #2 0xca686b in __soiltemperaturemod_MOD_soiltemperature
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/biogeophys/SoilTemperatureMod.F90:485
777: #3 0x5d4636 in __clm_driver_MOD_clm_drv
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/main/clm_driver.F90:1231
777: #4 0x58d492 in modeladvance
777: at /global/cfs/cdirs/m2702/liliyao/clm5.0_ctsm5.1.dev118/src/cpl/nuopc/lnd_comp_nuopc.F90:904
The codes around line 921 in SoilTemperatureMod.F90 are:
if (z_avg > 0._r8) then
rho_avg=min(800._r8,h2osno_total(c)/z_avg)
else
rho_avg=200._r8
endif
However, when I restart the simulation using the last restart file from this run, the model runs through the simulation year when it encountered the arithmetic error . After more than 100 simulation years, it crashes again because of the same error, and once again, it runs well if I restart the simulation using the last restart files I saved (I saved the restart file every 20 simulation years). So, I was wondering if it is potentially some kind of accumulation bug? I would appreciate any comments regarding this error. Thank you very much!