On Wed, 17 Mar 2010, Edouard Oudet wrote:

> I obtain the following message :
>
> ------------------------------------------------------------------------
>>> mex_loadlibmesh
> STEP 1
> STEP 2
> STEP 3
> LibMeshInit done
>>> mex_loadlibmesh
> STEP 1
> [0]PETSC ERROR: --------------------- Error Message 
> ------------------------------------
> [0]PETSC ERROR: You can not initialize PETSc a second time!
>
> and then, matlab session logout !
> Does any one has some suggestions to force Petsc/Slepc to stop at the end of 
> the first run in that context ?

To avoid initializing PETSc a second time, I would suggest you avoid
initializing PETSc a second time.  ;-)  What else did you expect a
second initialization call to do?

Create LibMeshInit on the heap with mex_loadlibmesh so it doesn't
destroy at the end, then create a mex_unloadlibmesh to destroy it when
you really are done.
---
Roy

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to