# Elevated sources error due to grouping

**URL:** <https://forum.cmascenter.org/t/elevated-sources-error-due-to-grouping/6042>\
**Category:** Run Errors and Warnings\
**Tags:** smoke\
**Created:** [October 31, 2025, 4:33am UTC](https://forum.cmascenter.org/t/elevated-sources-error-due-to-grouping/6042 "2025-10-31T04:33:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fazargoshasbi](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@fazargoshasbi](https://forum.cmascenter.org/u/fazargoshasbi)\
**Post date:** [October 31, 2025, 4:33am UTC](https://forum.cmascenter.org/t/elevated-sources-error-due-to-grouping/6042/1 "2025-10-31T04:33:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [October 31, 2025, 12:44pm UTC](https://forum.cmascenter.org/t/elevated-sources-error-due-to-grouping/6042/2 "2025-10-31T12:44:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![fazargoshasbi](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@fazargoshasbi](https://forum.cmascenter.org/u/fazargoshasbi)\
**Post date:** [October 31, 2025, 4:49pm UTC](https://forum.cmascenter.org/t/elevated-sources-error-due-to-grouping/6042/3 "2025-10-31T16:49:53Z")

</div>

@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](https://forum.cmascenter.org/uploads/short-url/tHpRoQ0HtwGE8yUeOMMU7HBzYWG.txt) (13.0 KB)

[smkinven.cmv\_c3.18us.txt](https://forum.cmascenter.org/uploads/short-url/oLnOK3kPueGk0LmakycP7shnIu5.txt) (105.7 KB)

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [October 31, 2025, 6:22pm UTC](https://forum.cmascenter.org/t/elevated-sources-error-due-to-grouping/6042/4 "2025-10-31T18:22:14Z")

</div>

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