On Wed, Apr 2, 2014 at 5:18 AM, TAY wee-beng <[email protected]> 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
