First time here? Checkout the FAQ!
0 votes
by (120 points)

Dear openCARP community,

I have built PETSc and openCARP on a remote server. While building openCARP following the instructions from the openCARP installation page, I ran into the error:

#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"

I could solve this by using the option -DMPI_C_COMPILER=$PETSC_DIR/bin/mpicc when running cmake. I hope that this post might help people experiencing the same error when building from source.

Best regards,


1 Answer

0 votes
by (17.5k points)
Thanks Marie!
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance