[petsc-users] test failed on 2 processes and segmentation fault while initializing in deal.II

Barry Smith bsmith at mcs.anl.gov
Thu Aug 4 21:58:40 CDT 2011


  It is not really an error. It comes from the fact that the Fortran compiler gave a warning message and it is not smart enough to ignore that error.

  Barry

On Aug 4, 2011, at 8:56 PM, huyaoyu wrote:

> Satish,
> 
> Yes, PETSc outputs the fortran warings when I invoke "make test". As you
> said, I will just ignore them. But it also says that "Error detected
> during compile or link".
> 
> =========PETSc output while testing=======
> huyaoyu at ubuntu:~/Downloads/petsc-3.1-p8$ make
> PETSC_DIR=/home/huyaoyu/Downloads/petsc-3.1-p8
> PETSC_ARCH=linux-gnu-c-debug test
> Running test examples to verify correct installation
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1
> MPI process
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2
> MPI processes
> --------------Error detected during compile or
> link!-----------------------
> ... OTHER STUFF AND FORTRAN WARNINGS...
> Fortran example src/snes/examples/tutorials/ex5f run successfully with 1
> MPI process
> Completed test examples
> =========End of PETSc output while testing==
> 
> So, I just ignore this. Is that OK?
> 
> Thanks!
> 
> HuYaoyu
> 
>>> Thanks to Satish Balay and Jed Brown. Your advices are pretty good!
>>> 
>>> I remove the petsc directory and deal.II directory. Re-build petsc and
>>> deal.II with the mpi installed system wide. The configuration lines are
>>> as follows:
>>> 
>>> For PETSc:
>>> ./config/configure.py --with-cc=/usr/bin/mpicc --with-fc=/usr/bin/mpif90
>>> --download-f-blas-lapack=1 --with-shared
>>> 
>>> For deal.II:
>>> ./configure --enable-shared --disable-threads --with-petsc=$PETSC_DIR
>>> --with-petsc-arch=$(PETSC_ARCH) --with-p4est=PATH-TO-P4EST --with-mpi
>>> 
>>> I will use p4est for grid distribution and I checked the configure
>>> output of deal.II. The output says deal.II will use /usr/bin/mpicc for
>>> CC variable and /usr/bin/mpiCC for CXX variable. And deal.II says: 
>>> =================deal.II configure output=========================
>>> checking for PETSc library
>>> directory... /home/huyaoyu/Downloads/petsc-3.1-p8
>>> checking for PETSc version... 3.1.0
>>> checking for PETSc library architecture... linux-gnu-c-debug
>>> checking for PETSc libmpiuni library... not found
>>> checking for consistency of PETSc and deal.II MPI settings... yes
>>> checking for PETSc scalar complex... no
>>> ================= end of deal.II configure output=================
>>> 
>>> After the compilation of PETSc and deal.II, I tried to compile the
>>> specific example program of deal.II which will use PETSc. And everything
>>> works well. No segmentation error any more! Great!
>>> 
>>> However, the test of PETSc trigger the same error while trying to
>>> perform task in 2 process. Is it because I am using PETSc on a single
>>> machine but not a cluster of computers?
>> 
>> You mean the compiler warning for the fortan example in 'make test'?
>> 
>> You can ignore that.
>> 
>> Satish
> 
> 
> 



More information about the petsc-users mailing list