Re: [petsc-users] PETSc init question

2024-01-31 Thread Matthew Knepley
On Wed, Jan 31, 2024 at 10:10 AM Alain O' Miniussi wrote: > 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) >From the page: "

Re: [petsc-users] PETSc init question

2024-01-31 Thread Pierre Jolivet
> On 31 Jan 2024, at 11:31 AM, Alain O' Miniussi wrote: > > 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

[petsc-users] PETSc init question

2024-01-31 Thread Alain O' Miniussi
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