3

rcontrib error: internal - too many modifiers

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?

Mostapha Roudsari's avatar
1.1k
Mostapha Roudsari
asked 2016-04-20 17:26:11 -0500, updated 2016-04-20 17:26:44 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

4

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 (http://radiance-online.org/cgi-bin/vi...). If you need it to be higher than that you can change it in the source and recompile.

Andyrew's avatar
790
Andyrew
answered 2016-04-20 17:59:28 -0500, updated 2016-04-20 17:59:52 -0500
edit flag offensive 0 remove flag delete link

Comments

1

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
2

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
add a comment see more comments