And what about the makefile how can I include my subroutines inside the petsc makefile<br><br>Thanks<br><br><b><i>Satish Balay <balay@mcs.anl.gov></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Mon, 13 Aug 2007, Waad Subber wrote:<br><br>> Hello Everyone,<br>> <br>> I am a new PETSc user; and I am wondering if any one can help me with the following issue.<br>> <br>> The issue is I want to write KSP solver with all the required objects in an external subroutine and then call it from my main program. I don't know if I can do that. <br>> <br>> What I mean is I have a main code consist of several subroutines and I want to change my solver with PETSc solver with keeping the same structure of my main program. <br>> <br>> Thanks :)<br><br>It should work.<br><br>The only thing you have to make sure is -<br>PetscInitialize()/PetscFinalize() routines are called only
once.<br><br>Satish<br><br></blockquote><br><p> 
<hr size=1>Take the Internet to Go: Yahoo!Go puts the <a href="http://us.rd.yahoo.com/evt=48253/*http://mobile.yahoo.com/go?refer=1GNXIC">Internet in your pocket:</a> mail, news, photos & more.