<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">I reveive the error as,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"><STRONG>[0]PETSC ERROR:
------------------------------------------------------------------------<BR>[0]PETSC
ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory
access out of range<BR>[0]PETSC ERROR: Try option -start_in_debugger or
-on_error_attach_debugger<BR>[0]PETSC ERROR: or see </STRONG><A
href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC"><STRONG>http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC</STRONG></A><STRONG>
ERROR: or try </STRONG><A
href="http://valgrind.org"><STRONG>http://valgrind.org</STRONG></A><STRONG> on
linux or man libgmalloc on Apple to find memory corruption errors<BR>[0]PETSC
ERROR: likely location of problem given in stack below<BR>[0]PETSC ERROR:
--------------------- Stack Frames
------------------------------------<BR>[0]PETSC ERROR: Note: The EXACT line
numbers in the stack are not available,<BR>[0]PETSC
ERROR: INSTEAD the line number of the start
of the function<BR>[0]PETSC ERROR: is
given.<BR>[0]PETSC ERROR: [0] PetscMapInitialize line 41
src/vec/vec/impls/mpi/d:\MyVC\PETSC-~1.2-P\src\vec\vec\impls\mpi\pmap.c<BR>[0]PETSC
ERROR: --------------------- Error Message
------------------------------------<BR>[0]PETSC ERROR: Signal
received!<BR>[0]PETSC ERROR:
------------------------------------------------------------------------<BR>[0]PETSC
ERROR: Petsc Release Version 2.3.2, Patch 3, Fri Sep 29 17:09:34 CDT 2006 HG
revision: 9215af156a9cbcdc1ec666e2b5c7934688ddc526<BR>[0]PETSC ERROR: See
docs/changes/index.html for recent updates.<BR>[0]PETSC ERROR: See docs/faq.html
for hints about trouble shooting.<BR>[0]PETSC ERROR: See docs/index.html for
manual pages.<BR>[0]PETSC ERROR:
------------------------------------------------------------------------<BR>[0]PETSC
ERROR: Unknown Name on a cygwin-cx named DMRC-6700512 by DMRC-user Thu Nov 02
16:22:47 2006<BR>[0]PETSC ERROR: Libraries linked from
/cygdrive/D/MyVC/petsc-2.3.2-p3/lib/cygwin-cxx-debug<BR>[0]PETSC ERROR:
Configure run at Wed Nov 1 10:08:10 2006<BR>[0]PETSC ERROR: Configure
options --with-mpi-dir=/cygdrive/d/MPICH2 --with-cc="win32fe cl" --with-fc=0
--with-cxx="win32fe cl" --with-clanguage=cxx
--with-blas-lapack-dir=/cygdrive/D/MyVC/petsc-2.3.2-p3/externalpackages/w_mkl_serial_p_8.1.001/mkl_serial_8.1/mkl_8.1_serial/ia32/lib
COPTFLAGS="-MD -Z7" CXXOPTFLAGS="-MD -Z7" --useThreads=0
--with-shared=0<BR>[0]PETSC ERROR:
------------------------------------------------------------------------<BR>[0]PETSC
ERROR: User provided function() line 0 in unknown directory unknown
file<BR>unable to read the cmd header on the pmi context, Undefined dynamic
error code.</STRONG></FONT></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><FONT face="Bookman Old Style"><STRONG>job aborted:<BR>rank: node: exit
code[: error message]<BR>0: dmrc-6700512: 59: application called
MPI_Abort(MPI_COMM_WORLD, 59) - process 0</STRONG></FONT></DIV>
<DIV><FONT face="Bookman Old Style"> </FONT></DIV>
<DIV><FONT face="Bookman Old Style">I think this error maybe caused by these
codes,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"> PetscMap *map;<BR> ierr =
PetscMapInitialize(PETSC_COMM_WORLD, map);<BR> CHKERRQ(ierr);<BR> ierr
= PetscMapSetSize (map, n);<BR> ierr =
PetscMapGetLocalRange(map,&Istart,&Iend); CHKERRQ(ierr);</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Is it correct to use the PetscMap like
this?</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Best,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Yixun</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"> </DIV>
<DIV><BR></DIV></FONT></BODY></HTML>