[petsc-users] Difference between ex5f, ex5f90 and ex5f90t

Matthew Knepley knepley at gmail.com
Wed Apr 2 08:26:28 CDT 2014


On Wed, Apr 2, 2014 at 5:18 AM, TAY wee-beng <zonexo at gmail.com> wrote:

>  Hi,
>
> May I know what's the difference between ex5f, ex5f90 and ex5f90t?
>

This describes the various options:


http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/UsingFortran.html

    Matt


> I wrote my CFD code in F90, and I would like to create a Poisson solver
> subroutine based on the ex5 example. The solver will be placed inside a
> module.
>
> So which is the preferred format to use?
>
> Btw, my code is something like this:
>
> *module PETSc_solvers*
>
> *use set_matrix*
>
> *use ibm*
>
> *implicit none*
>
> *contains*
>
> *subroutine semi_momentum_simple_xyz(du,dv,dw)*
>
> *!discretise momentum eqn using semi-implicit mtd*
>
> *!simple except east,west*
>
> *#include "finclude/petsc.h90"*
>
>
>
> * PetscViewer    viewer PetscScalar, pointer :: xx_v(:)*
>
> *integer :: i,j,k,ijk,ierr,JJ,kk,*
>
> ...
>
> --
> Thank you
>
> Yours sincerely,
>
> TAY wee-beng
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140402/b08bc94c/attachment.html>


More information about the petsc-users mailing list