10 |
C | elliptic problems for the pressure field. | |
C | elliptic problems for the pressure field. | |
11 |
C \==========================================================/ |
C \==========================================================/ |
12 |
|
|
13 |
|
C == Global variables |
14 |
|
#include "SIZE.h" |
15 |
|
#include "EEPARAMS.h" |
16 |
|
#include "PARAMS.h" |
17 |
|
#include "DYNVARS.h" |
18 |
|
#include "CG2D.h" |
19 |
|
|
20 |
C == Routine arguments == |
C == Routine arguments == |
21 |
C myThid - Number of this instance of SOLVE_FOR_PRESSURE |
C myThid - Number of this instance of SOLVE_FOR_PRESSURE |
22 |
INTEGER myThid |
INTEGER myThid |
23 |
CEndOfInterface |
CEndOfInterface |
24 |
|
|
25 |
|
C Local variables |
26 |
|
INTEGER i,j,bi,bj |
27 |
|
|
28 |
|
#ifdef ALLOW_CD |
29 |
|
C-- Save previous solution. |
30 |
|
DO bj=myByLo(myThid),myByHi(myThid) |
31 |
|
DO bi=myBxLo(myThid),myBxHi(myThid) |
32 |
|
DO j=1-OLy,sNy+OLy |
33 |
|
DO i=1-OLx,sNx+OLx |
34 |
|
cg2d_xNM1(i,j,bi,bj) = cg2d_x(i,j,bi,bj) |
35 |
|
ENDDO |
36 |
|
ENDDO |
37 |
|
ENDDO |
38 |
|
ENDDO |
39 |
|
#endif |
40 |
|
|
41 |
C-- Find the surface pressure using a two-dimensional conjugate |
C-- Find the surface pressure using a two-dimensional conjugate |
42 |
C-- gradient solver. |
C-- gradient solver. |
43 |
C see CG2D.h for the interface to this routine. |
C see CG2D.h for the interface to this routine. |