[petsc-users] issues with mpi uni
Janne Ruuskanen (TAU)
janne.ruuskanen at tuni.fi
Mon Aug 23 05:45:34 CDT 2021
Hi,
Assumingly, I have an issue using petsc and openmpi together in my c++ code.
See the code there:
https://github.com/halbux/sparselizard/blob/master/src/slmpi.cpp
So when I run:
slmpi::initialize();
slmpi::count();
slmpi::finalize();
I get the following error:
*** The MPI_Comm_size() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.
Have you experienced anything similar with people trying to link openmpi and petsc into the same executable?
Best regards,
Janne Ruuskanen
More information about the petsc-users
mailing list