Really sorry!
? 2012-05-22 22:29:09?"Aron Ahmadia" <aron.ahmadia at kaust.edu.sa> ??? > > 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/3eec69f0/attachment-0001.html>
