Hello Bruno, I have one problem installing PETSc with deal.ii. I am trying to install petsc-3.13.1 for deal.ii and test it with step-17. I've done this: 1. Compile PETSc with the command ./config/configure.py --with-shared=1 CC=mpicc CXX=mpicxx --with-x=0 --with-mpi=1 --download-hypre=1 make make PETSC_DIR=~/deal.II/petsc/petsc-3.13.0 PETSC_ARCH=x86_64 check
2. Install Trilinos 12.8.1 "successfully" (I guess) since I've got a lot of -FOUND Trilinos library ..... when I installed deal.ii as below 3. Compile deal.ii (inside new and empty build dir) with these configs: cmake \ -DDEAL_II_WITH_HDF5=ON \ -DHDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/mpich \ -DDEAL_II_WITH_PETSC=ON \ -DPETSC_DIR=~/deal.II/petsc/petsc-3.13.1 \ -DPETSC_ARCH=x86_64 \ -DDEAL_II_WITH_MPI=ON \ -DDEAL_II_WITH_METIS=ON \ -DDEAL_II_WITH_TRILINOS=ON \ -DTRILINOS_DIR=/home/share/trilinos \ -DCMAKE_INSTALL_PREFIX=~/deal.II ../dealii-9.2.0 \ ../ The strange output lines I've got after [100%] Built target step-35.release [100%] Built target step-63.release Install the project... is a lot of setting runtime path like this: -- Set runtime path of "/home/deepceel/deal.II/examples/step-1/step-1.debug" to "/home/deepceel/deal.II/lib:/home/share/trilinos/lib:/usr/lib/x86_64-linux-gnu/openmpi/lib:/home/deepceel/deal.II/petsc/petsc-3.13.1/x86_64/lib:/usr/lib/x86_64-linux-gnu/hdf5/mpich/lib" And then when I test the library with step-17 tutorial, here is the error: PETSc Error --- Application was linked against both OpenMPI and MPICH based MPI libraries and will not run correctly ..... The description of the error provided by PETSc is "MPI library at runtime is not compatible with MPI used at compile time". The numerical value of the original error code is 87. I think I need some steps to make deal.ii configure MPI properly but I cannot figure it out. Thanks, Thang Pham. Vào lúc 01:45:27 UTC+9 ngày Thứ Sáu, 16 tháng 2, 2018, bruno.t...@gmail.com đã viết: > Daipayan, > > 2018-02-15 11:17 GMT-05:00 Daipayan Sarkar <sdai...@gmail.com>: > >> Thanks for your help. I followed just as you mentioned in your reply and >> now it works. For future, if I want to build any other external library >> (e.g. Trillions) do I need to use cmake in the build directly to make a new >> executable linked to the Trillions external library? >> > Yes, you need to reconfigure deal every time you want to add an external > library. The reason is that it is during the configuration phase that you > tell deal what libraries are available and which wrappers should be enable. > > Best, > > Bruno > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/26d379cf-e415-4c63-9646-3dc71e239191n%40googlegroups.com.