/[MITgcm]/MITgcm/model/src/solve_for_pressure.F
ViewVC logotype

Annotation of /MITgcm/model/src/solve_for_pressure.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (hide annotations) (download)
Fri Nov 6 22:44:49 1998 UTC (25 years, 6 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint18
Changes since 1.6: +2 -2 lines
Changes to allow for atmospheric integration builds of the code

1 cnh 1.7 C $Header: /u/gcmpack/models/MITgcmUV/model/src/solve_for_pressure.F,v 1.6 1998/10/28 03:11:38 cnh Exp $
2 cnh 1.1
3 adcroft 1.5 #include "CPP_OPTIONS.h"
4 cnh 1.1
5     CStartOfInterface
6     SUBROUTINE SOLVE_FOR_PRESSURE( myThid )
7     C /==========================================================\
8     C | SUBROUTINE SOLVE_FOR_PRESSURE |
9     C | o Controls inversion of two and/or three-dimensional |
10     C | elliptic problems for the pressure field. |
11     C \==========================================================/
12    
13 cnh 1.4 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 cnh 1.1 C == Routine arguments ==
21     C myThid - Number of this instance of SOLVE_FOR_PRESSURE
22     INTEGER myThid
23     CEndOfInterface
24 cnh 1.4
25     C Local variables
26 cnh 1.6 INTEGER i,j,k,bi,bj
27 cnh 1.4
28 cnh 1.7 #ifdef INCLUDE_CD_CODE
29 cnh 1.4 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 cnh 1.1
41     C-- Find the surface pressure using a two-dimensional conjugate
42     C-- gradient solver.
43     C see CG2D.h for the interface to this routine.
44     CALL CG2D(
45 cnh 1.6 I cg2d_b,
46     U cg2d_x,
47 cnh 1.1 I myThid )
48    
49    
50     RETURN
51     END

  ViewVC Help
Powered by ViewVC 1.1.22