Hello everyone, I have correctly configured and installed precice and mpich according to the documentation, and passed all ctests. When trying to run the m2n test case in precice-2.5.0/tools/testing/communication_dummies, I encountered a problem. After running with mpi, an error occurred: “Cannot call MPI_INIT or MPI_INIT_THREAD more than once”. After investigating the code, it was found that MPI_Init_thread() was started in mainA.cpp first, and then utils::Parallel::initializeMPI() was started before the communication subdivision. I would like to know why the code is designed this way, and how to correctly run the virtual solvers of mainA and mainB to implement the m2n communication test. If someone could give me some guidance, I really appreciate it!
System info:
OS: Ubuntu 20.04.6
preCICE version:2.5.0
MPICH version:4.1.2