[petsc-users] On the edge of 2^31 unknowns

Barry Smith bsmith at mcs.anl.gov
Mon Nov 16 11:40:36 CST 2015


  Eric,

    The behavior you get with bizarre integers and a crash is not the behavior we want. We would like to detect these overflows appropriately.   If you can track through the error and determine the location where the overflow occurs then we would gladly put in additional checks and use of PetscInt64 to handle these things better. So let us know the exact cause and we'll improve the code.

  Barry



> On Nov 16, 2015, at 11:11 AM, Eric Chamberland <Eric.Chamberland at giref.ulaval.ca> wrote:
> 
> On 16/11/15 10:42 AM, Matthew Knepley wrote:
>> Sometimes when we do not have exact counts, we need to overestimate
>> sizes. This is especially true
>> in sparse MatMat.
> 
> Ok... so, to be sure, I am correct if I say that recompiling petsc with
> "--with-64-bit-indices" is the only solution to my problem?
> 
> I mean, no other fixes exist for this overestimation in a more recent release of petsc, like putting the result in a "long int" instead?
> 
> Thanks,
> 
> Eric
> 



More information about the petsc-users mailing list