Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

rcontrib error: internal - too many modifiers

asked 2016-04-20 17:26:11 -0500

updated 2016-04-20 17:26:44 -0500

I'm trying to set-up an analysis with rcontrib where I'm reading thousands of modifiers from a text file. The analysis works fine by 2047 modifiers but for 2048 modifiers or more rcontrib throws an error:

rcontrib error: internal - too many modifiers

I checked the source code. The maximum number of modifiers is set as MAXMODLIST which I assume is 2047. Is there anyway to change the max number or do I need to break down modifiers into separate files?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-20 17:59:28 -0500

updated 2016-04-20 17:59:52 -0500

MAXMODLIST Is defined in rcontrib.h. Greg raised MAXMODLIST from 2048 to 10,000 a month ago, so if you download the head release it is higher ( If you need it to be higher than that you can change it in the source and recompile.

edit flag offensive delete link more



Interestingly he raised it because it is more efficient to track contributions by modifier than by bin. In the direct sun coefficient step of the 5-phase method the simulation time is much faster if the suns each have a separate modifier for tracking instead of using ray directions to bin rays. But, you need something like 6000 modifiers, so MAXMODLIST was increased.

Andyrew's avatar Andyrew  ( 2016-04-20 18:05:37 -0500 )edit

Thanks Andy. I need it for a very similar purpose (annual solar exposure) and 10000 is more than enough. I think I will wait for @rpg777 to release a new Radiance version of Radiance. The latest release is from Feb.

Mostapha Roudsari's avatar Mostapha Roudsari  ( 2016-04-20 18:26:20 -0500 )edit

Well this is as good a reason as any to make a new batch. =) Stay tuned...

rpg777's avatar rpg777  ( 2016-04-21 10:04:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-04-20 17:26:11 -0500

Seen: 177 times

Last updated: Apr 20 '16