3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterface |
CBOP |
7 |
|
C !ROUTINE: SOLVE_FOR_PRESSURE |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE SOLVE_FOR_PRESSURE( myThid ) |
SUBROUTINE SOLVE_FOR_PRESSURE( myThid ) |
|
C /==========================================================\ |
|
|
C | SUBROUTINE SOLVE_FOR_PRESSURE | |
|
|
C | o Controls inversion of two and/or three-dimensional | |
|
|
C | elliptic problems for the pressure field. | |
|
|
C \==========================================================/ |
|
|
IMPLICIT NONE |
|
10 |
|
|
11 |
|
C !DESCRIPTION: \bv |
12 |
|
C *==========================================================* |
13 |
|
C | SUBROUTINE SOLVE_FOR_PRESSURE |
14 |
|
C | o Controls inversion of two and/or three-dimensional |
15 |
|
C | elliptic problems for the pressure field. |
16 |
|
C *==========================================================* |
17 |
|
C \ev |
18 |
|
|
19 |
|
C !USES: |
20 |
|
IMPLICIT NONE |
21 |
C == Global variables |
C == Global variables |
22 |
#include "SIZE.h" |
#include "SIZE.h" |
23 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
34 |
#endif |
#endif |
35 |
#include "SOLVE_FOR_PRESSURE.h" |
#include "SOLVE_FOR_PRESSURE.h" |
36 |
|
|
37 |
|
C !INPUT/OUTPUT PARAMETERS: |
38 |
C == Routine arguments == |
C == Routine arguments == |
39 |
C myThid - Number of this instance of SOLVE_FOR_PRESSURE |
C myThid - Number of this instance of SOLVE_FOR_PRESSURE |
40 |
INTEGER myThid |
INTEGER myThid |
|
CEndOfInterface |
|
41 |
|
|
42 |
|
C !LOCAL VARIABLES: |
43 |
C == Local variables == |
C == Local variables == |
44 |
INTEGER i,j,k,bi,bj |
INTEGER i,j,k,bi,bj |
45 |
_RS uf(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RS uf(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
47 |
_RL firstResidual,lastResidual |
_RL firstResidual,lastResidual |
48 |
INTEGER numIters |
INTEGER numIters |
49 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
50 |
|
CEOP |
51 |
|
|
52 |
C-- Save previous solution & Initialise Vector solution and source term : |
C-- Save previous solution & Initialise Vector solution and source term : |
53 |
DO bj=myByLo(myThid),myByHi(myThid) |
DO bj=myByLo(myThid),myByHi(myThid) |