[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling PETSc from Fortan main routine



And what about the makefile how can I include my subroutines inside the petsc makefile

Thanks

Satish Balay <balay@xxxxxxxxxxx> wrote:
On Mon, 13 Aug 2007, Waad Subber wrote:

> Hello Everyone,
>
> I am a new PETSc user; and I am wondering if any one can help me with the following issue.
>
> 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.
>
> 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.
>
> Thanks :)

It should work.

The only thing you have to make sure is -
PetscInitialize()/PetscFinalize() routines are called only once.

Satish



Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.