Re: [petsc-users] Crash caused by strange error in KSPSetUp

2020-02-14 Thread Victor Eijkhout
On , 2020Feb14, at 09:47, Junchao Zhang via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Barry recently added a useful check to catch number of nonzero overflow, ierr = PetscIntCast(nz64,); Is that only activated in debug versions of the installation? Victor.

Re: [petsc-users] Crash caused by strange error in KSPSetUp

2020-02-14 Thread Junchao Zhang via petsc-users
Which petsc version do you use? In aij.c of the master branch, I saw Barry recently added a useful check to catch number of nonzero overflow, ierr = PetscIntCast(nz64,);CHKERRQ(ierr); But you mentioned using 64-bit indices did not solve the problem, it might not be the reason. You should try the

Re: [petsc-users] Crash caused by strange error in KSPSetUp

2020-02-14 Thread Junchao Zhang via petsc-users
On Fri, Feb 14, 2020 at 9:49 AM Victor Eijkhout wrote: > > > On , 2020Feb14, at 09:47, Junchao Zhang via petsc-users < > petsc-users@mcs.anl.gov> wrote: > > Barry recently added a useful check to catch number of nonzero overflow, > ierr = PetscIntCast(nz64,); > > > Is that only activated in

Re: [petsc-users] Crash caused by strange error in KSPSetUp

2020-02-14 Thread Richard Beare via petsc-users
I will see if I can build with master. The docs for simulatrophy say 3.6.3.1. On Sat, 15 Feb 2020 at 02:47, Junchao Zhang wrote: > Which petsc version do you use? In aij.c of the master branch, I saw Barry > recently added a useful check to catch number of nonzero overflow, ierr = >

Re: [petsc-users] Crash caused by strange error in KSPSetUp

2020-02-14 Thread Richard Beare via petsc-users
It doesn't compile out of the box with master. singularity def file attached. On Sat, 15 Feb 2020 at 08:03, Richard Beare wrote: > I will see if I can build with master. The docs for simulatrophy say > 3.6.3.1. > > On Sat, 15 Feb 2020 at 02:47, Junchao Zhang wrote: > >> Which petsc version do

Re: [petsc-users] Crash caused by strange error in KSPSetUp

2020-02-14 Thread Richard Beare via petsc-users
No luck - exactly the same error after including the --with-64-bit-indicies=yes --download-mpich=yes options ==8674== Argument 'size' of function memalign has a fishy (possibly negative) value: -17152036540 ==8674==at 0x4C320A6: memalign (in