[petsc-dev] Integer overflow inside GAMG

Pierre Jolivet jolivet at ann.jussieu.fr
Wed Dec 11 04:21:53 CST 2013


Hello,
I'm using PETSc without --with-64-bit-indices, and it looks like
PCGAMGFilterGraph declares variables nnz0 and nnz1 as PetscInt. Shouldn't
they be declared as Petsc64bitInt (which would default to PetscInt when
compiling with --with-64-bit-indices) ?
Here is a "funny" log of GAMG (the execution is fine nonetheless, as you
might have guessed, this is just for aesthetic consideration):

        [0]PCSetFromOptions_GAMG threshold set 1.000000e-01
        [0]PCSetUp_GAMG level 0 N=232830963, n data rows=3, n data cols=6,
nnz/row (ave)=76, np=4096
        [0]PCGAMGFilterGraph -49.2487% nnz after filtering, with threshold
0.1, -26.7705 nnz ave. (N=77610321)

Thank you,
Pierre




More information about the petsc-dev mailing list