3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
C /==========================================================\ |
CBOP |
7 |
C | S/R TIMESTEP | |
C !ROUTINE: TIMESTEP |
8 |
C | o Step model fields forward in time | |
C !INTERFACE: |
|
C \==========================================================/ |
|
9 |
SUBROUTINE TIMESTEP( bi, bj, iMin, iMax, jMin, jMax, K, |
SUBROUTINE TIMESTEP( bi, bj, iMin, iMax, jMin, jMax, K, |
10 |
I phiHyd, phiSurfX, phiSurfY, |
I phiHyd, phiSurfX, phiSurfY, |
11 |
I myIter, myThid ) |
I myIter, myThid ) |
12 |
IMPLICIT NONE |
C !DESCRIPTION: \bv |
13 |
|
C *==========================================================* |
14 |
|
C | S/R TIMESTEP |
15 |
|
C | o Step model fields forward in time |
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 "DYNVARS.h" |
#include "DYNVARS.h" |
26 |
#include "GRID.h" |
#include "GRID.h" |
27 |
#include "SURFACE.h" |
#include "SURFACE.h" |
28 |
|
|
29 |
|
C !INPUT/OUTPUT PARAMETERS: |
30 |
C == Routine Arguments == |
C == Routine Arguments == |
31 |
C phiHyd - Hydrostatic Potential (ocean: pressure/rho) |
C phiHyd - Hydrostatic Potential (ocean: pressure/rho) |
32 |
C (atmos: geopotentiel) |
C (atmos: geopotentiel) |
39 |
_RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
40 |
INTEGER myIter, myThid |
INTEGER myIter, myThid |
41 |
|
|
42 |
|
C !LOCAL VARIABLES: |
43 |
C == Local variables == |
C == Local variables == |
44 |
INTEGER i,j |
INTEGER i,j |
45 |
_RL ab15,ab05 |
_RL ab15,ab05 |
46 |
_RL phxFac,phyFac, psFac |
_RL phxFac,phyFac, psFac |
47 |
_RL gUtmp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL gUtmp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
48 |
_RL gVtmp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL gVtmp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
49 |
|
CEOP |
50 |
|
|
51 |
C Adams-Bashforth timestepping weights |
C Adams-Bashforth timestepping weights |
52 |
IF (myIter .EQ. 0) THEN |
IF (myIter .EQ. 0) THEN |