[petsc-users] A qustion of PETSc

Aron Ahmadia aron.ahmadia at kaust.edu.sa
Tue May 22 09:29:09 CDT 2012


>
>     Besides, I have a puzzle about the process (mpiexec -n 2).As you
> know,I only use PETSc in the subroutine(a function named PETSCSOLVE,may be
> taken as a tool function) and the main program call it for many times.
> So,where should I call "PetscInitialize" and "PetscFinalize",in the main
> program or in the subroutine PETSCSOLVE?
>     Thanks.                                                  Jim
>

You should call PetscInitialize as soon as possible and PetscFinalize as
late as possible.  Please read the PETSc user's guide and consult it before
asking questions that are clearly answered in the manual.

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


More information about the petsc-users mailing list