[petsc-users] petsc runtime error in connection with libmesh

Jed Brown jedbrown at mcs.anl.gov
Sun Nov 13 23:48:42 CST 2011


On Sun, Nov 13, 2011 at 23:39, Kyunghoon Lee <aeronova.mailing at gmail.com>wrote:

> I got a petsc runtime error as follows:
>
> [0]PETSC ERROR: --------------------- Error Message
> ------------------------------------
> [0]PETSC ERROR: Object is in wrong state!
> [0]PETSC ERROR: Not for unassembled matrix!
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: Petsc Release Version 3.2.0, Patch 5, Sat Oct 29 13:45:54
> CDT 2011
> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> [0]PETSC ERROR: See docs/index.html for manual pages.
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: ./ex30-dbg on a arch-darw named ken-pc.sutd.edu.sg by
> aeronova Mon Nov 14 13:33:08 2011
> [0]PETSC ERROR: Libraries linked from
> /Users/aeronova/Development/local/lib64/petsc/petsc-3.2-p5/lib
> [0]PETSC ERROR: Configure run at Mon Nov 14 12:55:15 2011
> [0]PETSC ERROR: Configure options
> --prefix=/Users/aeronova/Development/local/lib64/petsc/petsc-3.2-p5
> --download-mpich=1 --download-blacs=1 --download-parmetis=1
> --download-scalapack=1 --download-mumps=1 --download-umfpack=1
> --with-clanguage=C++
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: MatGetRow() line 350 in
> /Users/aeronova/Development/local/src/petsc-3.2-p5/src/mat/interface/matrix.c
> [0]PETSC ERROR: MatAXPY_BasicWithPreallocation() line 98 in
> /Users/aeronova/Development/local/src/petsc-3.2-p5/src/mat/utils/axpy.c
> [0]PETSC ERROR: MatAXPY_SeqAIJ() line 2718 in
> /Users/aeronova/Development/local/src/petsc-3.2-p5/src/mat/impls/aij/seq/aij.c
> [0]PETSC ERROR: MatAXPY() line 39 in
> /Users/aeronova/Development/local/src/petsc-3.2-p5/src/mat/utils/axpy.c
> [0]PETSC ERROR: add() line 566 in
> "unknowndirectory/"/Users/aeronova/Development/local/lib64/libmesh/include/numerics/petsc_matrix.h
>

You can define __INSDIR__="" to make the error handling macro treat that
part of the path as actually empty instead of using "unknowndirectory".


> application called MPI_Abort(comm=0x84000000, 73) - process 0
> [unset]: aborting job:
> application called MPI_Abort(comm=0x84000000, 73) - process 0
> make[2]: *** [run] Error 73
> make[1]: *** [run] Error 1
> make: *** [run_examples] Error 2
>
>
> I configured petsc with
>
> ./configure
> --prefix=/Users/aeronova/Development/local/lib64/petsc/petsc-3.2-p5
> --download-mpich=1 --download-blacs=1 --download-parmetis=1
> --download-scalapack=1 --download-mumps=1 --download-umfpack=1
> --with-clanguage=C++
>
> In the error message, I'm not sure why I got "unknowndirectory/" even
> though I specified the correct path.  I'd appreciate it if someone could
> help me with this problem.
>

I'm rebuilding libmesh to reproduce (with the brand-new example), but the
problem is that the matrix has not been assembled before this function is
called.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111113/7711302d/attachment.htm>


More information about the petsc-users mailing list