Closed jinlx closed 9 months ago
I will transfer this issue to the HEMCO issue tracker.
Thanks for writing @jinlx. The seg fault may be an out-of-bounds error. Check to see if you need to also update the N_SPEC parameter in hcox_gfed_mod.F90
.
!=================================================================
! MODULE PARAMETERS
!
! N_EMFAC : Number of emission factors per species
! N_SPEC : Max. number of species
!=================================================================
INTEGER, PARAMETER :: N_EMFAC = 6
INTEGER, PARAMETER :: N_SPEC = 35 ! increase from 34 (v12.5.0 default)
! to 35 for MOH
Thanks Bob! This is exactly the reason why GC cannot process after adding a new EF in hcox_gfed_include_gfed4.H. I will go ahead and close the issue for now.
Thanks @jinlx!
Perhaps in the future we can abstract the stuff out of hcox_include_gfed4.H and put it in a YAML file that gets read at startup. Then it'd be easier to change emission factors. I'll put it on the to-do list... :-)
Name and Institution (Required)
Name: Lixu Jin Institution: University of Montana
Description of your issue or question
Hi there,
I was trying to add new fire species by editing the source code in hcox_gfed_include_gfed4.H. Any addtional lines in the GFED4 extension code lead to a crash when running the GC. For example, the GC get stucks after reading GFED4 TOLU after I adding RCHO emission information. The GC.log and addtional lines are provided. Any inputs on fixing the error are welcome!
Thanks, Lixu
GC.log
Added lines in the hcox_gfed_include_gfed4.H:
The core output is provided as well just in case.