I run “make check” and find the error:

make[2]: Entering directory 
`/nfs/proj-tpeterka/jiang/code/libmesh-1.0.0-rc2/tests'
./unit_tests-devel
[compute:39297] *** Process received signal ***
[compute:39297] Signal: Segmentation fault (11)
[compute:39297] Signal code: Address not mapped (1)
[compute:39297] Failing at address: 0x44000098
[compute:39297] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) 
[0x2b7d42a43cb0]
[compute:39297] [ 1] /usr/lib/libmpi.so.0(MPI_Comm_size+0x5e) [0x2b7d40913fbe]
[compute:39297] [ 2] 
/nfs/jiang/code/libmesh-1.0.0-rc2/tests/.libs/unit_tests-devel(_ZN7libMesh8Parallel12Communicator6assignERKi+0x36)
 [0x4d6616]
[compute:39297] [ 3] 
/nfs/jiang/code/libmesh-1.0.0-rc2/.libs/libmesh_devel.so.0(_ZN7libMesh11LibMeshInitC1EiPKPKci+0xb31)
 [0x2b7d3f73b4e1]
[compute:39297] [ 4] 
/nfs/jiang/code/libmesh-1.0.0-rc2/tests/.libs/unit_tests-devel() [0x41d1fa]
[compute:39297] [ 5] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) 
[0x2b7d433c376d]
[compute:39297] [ 6] 
/nfs/jiang/code/libmesh-1.0.0-rc2/tests/.libs/unit_tests-devel() [0x41f561]
[compute:39297] *** End of error message ***
./run_unit_tests.sh: line 5: 39297 Segmentation fault      (core dumped) 
$LIBMESH_RUN ./unit_tests-$method
FAIL: run_unit_tests.sh

Maybe it is caused by my MPI installation.

> On Jun 22, 2016, at 2:39 PM, John Peterson <jwpeter...@gmail.com> wrote:
> 
> 
> 
> On Wed, Jun 22, 2016 at 1:24 PM, 张江 <zhangjiang.d...@gmail.com 
> <mailto:zhangjiang.d...@gmail.com>> wrote:
> Hi,
> 
> I have rebuilt libmesh with PETSc. Here is an simple example that to obtain 
> the nodal values. However, when I run it in parallel (mpiexec -n 2 ./out), 
> there is always error that:
> 
> [1]PETSC ERROR: --------------------- Error Message 
> --------------------------------------------------------------
> [1]PETSC ERROR: Signal received
> [1]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html 
> <http://www.mcs.anl.gov/petsc/documentation/faq.html> for trouble shooting.
> [1]PETSC ERROR: Petsc Release Version 3.7.2, Jun, 05, 2016 
> [1]PETSC ERROR: ./parallel on a arch-darwin-c-debug named xxx by xxx Wed Jun 
> 22 14:19:19 2016
> [1]PETSC ERROR: Configure options --prefix=/opt/petsc-3.7.2 
> --with-mpi-dir=/usr/local --download-fblaslapack
> [1]PETSC ERROR: #1 User provided function() line 0 in  unknown file
> 
> Was the PETSc not correctly installed or not well built with libmesh together?
> 
> Did you run "make check" after building libmesh?
> 
>  
> Below is the code:
> 
> The error is likely that you are accessing a non-local non-ghosted value in 
> the PETSc vector, but I haven't analyzed what you are doing closely.
> 
> -- 
> John

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to