Error messages not printing to HEMCO.log #236
Labels
category: Interface to External Model
Related to HEMCO updates needed to interface with other models (GEOS, WRF, CESM, etc)
never stale
Never label this issue as stale
topic: ESMF or MPI
Related to issues in the ESMF and/or MPI environments
Name and Institution (Required)
Name: Chris
Institution: Butenhoff
Confirm you have reviewed the following documentation
Description of your issue or question
I'm running HEMCO 3.0.0 within GCHP 13.1.2.
Apologies if this issue has been addressed by a newer version of HEMCO, but I believe I found a case where an HEMCO error message should have been written to the HEMCO.log file but wasn't.
My GCHP job failed with the following messages in the GCHP output file:
As you can see, the message states that the error occurred in HEMCO and to check for error messages in the HEMCO log file. However, even when I set the
Verbose
andWarning
flags to the maximum value of 3, there were no error messages in HEMCO.log,I eventually tracked the error down to an erroneous negative flux in one of my custom emissions inventories that caused the array
TmpFlux
in subroutineHco_CalcEmis
to be negative and it entered this IF-clause:Since I didn't have the
Negative values
flag set to 1 in HEMCO_Config.rc, HEMCO should have written the error message in theELSE
clause.The routine
HCO_ERROR
callsHCO_MSGErr:
You can see the MSG is not printed if
this is not the root CPU
. I was running GCHP using multiple nodes/cores so apparently the process running this was not on the root CPU. When I comment this line out, the MSG is written toGCHP.out
(or standard output) but notHEMCO.log.
I'm not sure how often this issue comes up, but fixing it could save considerable debugging time.
Thanks.
The text was updated successfully, but these errors were encountered: