[petsc-users] Is it possible to start MPI with n processes from within the code so it takes only effect on the petsc code?

Klaus Burkart k_burkart at yahoo.com
Tue Dec 4 16:22:04 CST 2018


Hello,

I try to integrate petsc into an application and I think it would be much simpler if I could bypass the applications original MPI functionality by starting MPI with n processes when initializing Petsc and stopping it when PetscFinalize(); is called. The standard  mpirun -np 4 application -parameters  triggers a couple of events which are of no use to petsc and at the same time make the implementation very complicated as e.g. relevant data is lost.

Is it possible to start MPI with n processes from within the code so it takes only effect on the petsc code? 

I see a simple way to provide the number of processes through the configuration file which will hold the solver settings.

Klaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181204/46656836/attachment.html>


More information about the petsc-users mailing list