Did you build PETSc with the same openmpi [as what sparselizard is built with]?

Satish

On Mon, 23 Aug 2021, Janne Ruuskanen (TAU) wrote:

> 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
> 

Reply via email to