[petsc-users] PETSc init question

Alain O' Miniussi alain.miniussi at oca.eu
Wed Jan 31 04:31:23 CST 2024


Hi,

It is indicated in:
https://petsc.org/release/manualpages/Sys/PetscInitialize/
that the init function will call MPI_Init.

What if MPI_Init was already called (as it is the case in my application) and what about MPI_Init_thread.

Wouldn't it be more convenient to have a Petsc init function taking a already initialized communicator as argument ?

Also, that initialization seems to imply that it is not possible to have multiple instance of PETSc on different communicators. Is that the case ?

Thanks

----
Alain Miniussi
DSI, Pôles Calcul et Genie Log.
Observatoire de la Côte d'Azur
Tél. : +33609650665


More information about the petsc-users mailing list