<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
May I know what's the difference between ex5f, ex5f90 and ex5f90t?<br>
<br>
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.<br>
<br>
So which is the preferred format to use?<br>
<br>
Btw, my code is something like this:<br>
<br>
<i><b>module PETSc_solvers</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>use set_matrix</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>use ibm</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>implicit none</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>contains</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>subroutine semi_momentum_simple_xyz(du,dv,dw)</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>!discretise momentum eqn using semi-implicit mtd</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>!simple except east,west</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>#include "finclude/petsc.h90"</b></i><i><b><br>
<br>
PetscViewer viewer<br>
<br>
PetscScalar, pointer :: xx_v(:)</b></i><i><b><br>
</b></i><i><b><br>
</b></i><i><b>integer :: i,j,k,ijk,ierr,JJ,kk,</b></i><br>
<br>
...<br>
<pre class="moz-signature" cols="72">--
Thank you
Yours sincerely,
TAY wee-beng</pre>
</body>
</html>