On Fri, Aug 5, 2011 at 2:56 AM, huyaoyu <huyaoyu1986 at gmail.com> 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? > Yes, it is just indicating that warning. Matt > 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 > > > > -- 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/20110805/85030565/attachment.htm>
