Elevated sources error due to grouping

I am trying to run EPA 2018 v2 emission inventory for cmv_c3_12 sector. I want to produce elevated inline/ping emission for CMAQ. However, when the program runs ELEVPOINT, I am getting the following error:

INTERNAL ERROR: The maximum number of sources per group ( 1000 ) was exceeded with a number of 1586

I tried adding different grouping options by add different criteria to my PELVCONFING file. But it didn’t solve the issue.

HT < 15. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
HT >= 15. AND HT < 25. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
HT >= 25. AND HT < 35. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
HT >= 35. AND HT < 45. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
HT >= 45. AND HT < 55. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
HT >= 55. AND HT < 70. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
HT >= 70. AND HT < 90. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
HT >= 90. AND DM +/- 0.15 AND TK +/- 10. AND VE +/- 0.5
/END/

I ended up with modifying the asgngrps.f script (see below).

INTEGER, PARAMETER :: MXLOCGRP = 100000 ! Max number groups per facility
INTEGER, PARAMETER :: MXSPGRP = 100000 ! Max number sources per group

I wonder whether this approach is okay since the EPA2018 platform elevates everything.

We are glad that increasing the array limits worked, although it will require more memory to run. We haven’t seen this issue before with this or other platforms. Can you please let us know which version of SMOKE you are using? Also, can you provide you Smkinven and Elevpoint logs from your original attempt that resulting in a crash before you edited the SMOKE code and PELVCONFIG? Thank you.

@eyth.alison I am using smoke 4.8.1 and my study region is Vancouver (see the GRIDDESC). I have attached the Smkinven and Elevpoint log files before editing the SMOKE code and PELVCONFIG.

GRIDDESC

’ ’
‘LamCon-UTSTAND’
2 30.000 45.000 -97.000 -97.000 49.700
’ ’
‘SQ_D01’
‘LamCon-UTSTAND’ -2162015.000 -26735.000 9000.000 9000.000 64 64 1
’ ’

PELVCONFIG

SMK_SOURCE P

/SPECIFY ELEV/
PM2_5 > 0
/END/

elevpoint.cmv_c3.18us.txt (13.0 KB)

smkinven.cmv_c3.18us.txt (105.7 KB)

Thank you for providing the log file. We note that the baseline case includes five inventories: