[petsc-dev] preallocation checks

Lisandro Dalcin dalcinl at gmail.com
Mon Jan 16 14:58:56 CST 2012


On 15 January 2012 23:30, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> On Wed, Jan 11, 2012 at 22:10, Barry Smith <bsmith at mcs.anl.gov> wrote:
>>
>>  That is not a concern, better to stop early with a useful message than
>> take tons of extra time on a huge job and make PETSc look extra bad at huge
>> problems.
>
>
> Done, I'll check the nightlies tomorrow to see which examples broke.
>
> http://petsc.cs.iit.edu/petsc/petsc-dev/rev/631dbd3be1c5

I've got this regression in petsc4py converting CRL -> AIJ. Of course
I can fix the test, but perhaps this should be handled in PETSc?


ERROR: testGetValuesCSR (test_mat_aij.TestMatMPIAIJCRL_B_G23_B2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_mat_aij.py", line 153, in testGetValuesCSR
    A.convert('aij', B)
  File "Mat.pyx", line 491, in petsc4py.PETSc.Mat.convert
(src/petsc4py.PETSc.c:76403)
Error: error code 63
[0] MatConvert() line 3859 in /home/devel/petsc/dev/src/mat/interface/matrix.c
[0] MatConvert_Basic() line 37 in /home/devel/petsc/dev/src/mat/utils/convert.c
[0] MatSetValues() line 1119 in /home/devel/petsc/dev/src/mat/interface/matrix.c
[0] MatSetValues_SeqAIJ() line 331 in
/home/devel/petsc/dev/src/mat/impls/aij/seq/aij.c
[0] Argument out of range
[0] New nonzero at (0,7) caused a malloc


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169



More information about the petsc-dev mailing list