[petsc-dev] regression in petsc4py

Hong Zhang hzhang at mcs.anl.gov
Mon Apr 11 09:38:26 CDT 2011


Pushed a fix. Let me know if the issue remains.
Hong

On Mon, Apr 11, 2011 at 9:15 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> My testsuite catched an issue when creating zero-sized BASIC AO's. It
> is easy to reproduce (at least from Pyhon).
>
> In [1]: from petsc4py import PETSc
>
> In [2]: ao = PETSc.AO().createBasic([],[])
> ---------------------------------------------------------------------------
> Error                                     Traceback (most recent call last)
>
> /home/dalcinl/Devel/petsc4py-dev-tmp/<ipython console> in <module>()
>
> /home/dalcinl/lib64/python/petsc4py/lib/arch-linux2-c-debug/PETSc.so
> in petsc4py.PETSc.AO.createBasic (src/petsc4py.PETSc.c:112438)()
>
> Error: error code 62
> [0] AOCreateBasic() line 341 in
> /home/devel/petsc/dev/src/dm/ao/impls/basic/aobasic.c
> [0] AOCreateBasicIS() line 383 in
> /home/devel/petsc/dev/src/dm/ao/impls/basic/aobasic.c
> [0] AOSetType() line 47 in /home/devel/petsc/dev/src/dm/ao/interface/aoreg.c
> [0] AOCreate_Basic() line 294 in
> /home/devel/petsc/dev/src/dm/ao/impls/basic/aobasic.c
> [0] ISRestoreIndices() line 416 in
> /home/devel/petsc/dev/src/vec/is/interface/index.c
> [0] ISRestoreIndices_General() line 149 in
> /home/devel/petsc/dev/src/vec/is/impls/general/general.c
> [0] Invalid argument
> [0] Must restore with value from ISGetIndices()
>
>
> --
> 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