On Mon, Mar 19, 2012 at 7:19 PM, Mohammad Mirzadeh mirzadeh at gmail.comwrote:
Hi,
When using AOCreateMapping, it is not possible to ask for mapping of
indecies that do not exist in the AO -- You get [0]PETSC ERROR: Argument
out of range! :
[0]PETSC ERROR: - Error Message
[0]PETSC ERROR: Argument out of range!
[0]PETSC ERROR: Invalid input index 21!
[0]PETSC ERROR:
[0]PETSC ERROR: Petsc Release Version 3.2.0, Patch 6, Wed Jan 11 09:28:45
CST 2012
[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: ./petsc on a arch-linu named mohammad-laptop by mohammad
Mon Mar 19 17:16:13 2012
[0]PETSC ERROR: Libraries linked from
/home/mohammad/soft/petsc-3.2-p6/arch-linux2-cxx-debug/lib
[0]PETSC ERROR: Configure run at Thu Feb 16 02:16:40 2012
[0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++
--with-fc=gfortran --with-clanguage=cxx --download-f-blas-lapack=1
--download-mpich=1 --download-hypre=1 --download-ml=1
--with-parmetis-include=/home/mohammad/soft/parmetis/include
--with-parmetis-lib=-L/home/mohammad/soft/parmetis/lib -lparmetis -lmetis
--download-superlu_dist=1
[0]PETSC ERROR:
[0]PETSC ERROR: AOApplicationToPetsc_Mapping() line 136 in
/home/mohammad/soft/petsc-3.2-p6/src/dm/ao/impls/mapping/aomapping.c
[0]PETSC ERROR: AOApplicationToPetsc() line 250 in
/home/mohammad/soft/petsc-3.2-p6/src/dm/ao/interface/ao.c
Is there an easy way to have the AO return a flag integer (like -1) for
nodes that do not exist in the AO?
You can get the indices and check yourself.
Matt
Mohammad
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-- next part --
An HTML attachment was scrubbed...
URL:
http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120319/e8e5dbca/attachment.htm