[GRASS-dev] i.atcorr and static array: conditionalize for 64bit?

Markus Neteler neteler at osgeo.org
Sat May 23 04:41:13 EDT 2009


(this was before on GRASS-user)

On Sat, May 16, 2009 at 6:51 PM, Markus Neteler <neteler at osgeo.org> wrote:
...
>> main.cpp:181: error: size of array ‘tic’ is too large
>
> the problem is fixed: the recently increased cache did not fit
> on 32bit CPUs but only on 64bit. Now it is reduced to
> 4096 and it compiles again on 32bit, too.
>
> TODO: implement dynamically allocated arrays in the cache.

Since this is unlikely to happen in the near future unless we
find a volunteer - is there a possibility to simply add a condition:

if 32bit CPU, then use 4096,
if 64bit CPU, then use 2^16 *2 = 131072 (the largest value which
   I found to not segfault i.atcorr)

We speak about time reduction from several weeks to 40 minutes.

Any pointer welcome,
Markus

Best
Markus
>


More information about the grass-dev mailing list