On Wed, Oct 3, 2012 at 11:58 AM, Eleni Siampli <span dir="ltr"><<a href="mailto:siaeleni@hotmail.com" target="_blank">siaeleni@hotmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">It doen't work good. I have created a dll for solving the eigenPorblem (eigenSolver.dll) and I included it in my current project.<br>
lets say that eigenSolver is the name of my class.. What I use is:<br>
eigensolver eig; <br>
for a lot of iterations and works fine. I call only one the PetscInitialize();<br>
 <br>
I want also to use:<br>
eigensolver eig1;<br>
eigensolver eig2;<br>
 <br>
I call only once PetscInitialize(); for each eig1 and eig 2.</div></blockquote></div><br><div>It is much better to call PetscInitialize only once, ever. There are lots of ways to set that up in your code. I would use a static variable and register a finalize routine with my main.</div>