1 |
C $Header$ |
C $Header$ |
2 |
C $Name$ |
C $Name$ |
3 |
|
|
4 |
|
#include "GRIDALT_OPTIONS.h" |
5 |
|
|
6 |
subroutine gridalt_update(myThid) |
subroutine gridalt_update(myThid) |
7 |
c*********************************************************************** |
c*********************************************************************** |
8 |
c subroutine gridalt_update |
c subroutine gridalt_update |
9 |
c |
c |
10 |
c Purpose: Update the pressure thicknesses of the layers of the |
c Purpose: Update the pressure thicknesses of the layers of the |
11 |
c alternative vertical grid (used now for atmospheric physics). |
c alternative vertical grid (used now for atmospheric physics). |
12 |
c |
c |
13 |
c Calculate: dpphys - new delta r (p*) edge-to-edge of physics grid |
c Calculate: dpphys - new delta r (p*) edge-to-edge of physics grid |
15 |
c |
c |
16 |
c*********************************************************************** |
c*********************************************************************** |
17 |
implicit none |
implicit none |
18 |
c |
|
|
#include "PACKAGES_CONFIG.h" |
|
|
#include "CPP_OPTIONS.h" |
|
19 |
#include "SIZE.h" |
#include "SIZE.h" |
20 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
21 |
#include "PARAMS.h" |
#include "PARAMS.h" |
31 |
integer i,j,L |
integer i,j,L |
32 |
logical diagnostics_is_on |
logical diagnostics_is_on |
33 |
external diagnostics_is_on |
external diagnostics_is_on |
34 |
|
_RL temparr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy) |
35 |
|
|
36 |
im1 = 1-OLx |
im1 = 1-OLx |
37 |
im2 = sNx+OLx |
im2 = sNx+OLx |
60 |
c |
c |
61 |
enddo |
enddo |
62 |
enddo |
enddo |
63 |
|
|
64 |
endif |
endif |
65 |
|
|
66 |
#endif |
#endif |
67 |
|
|
68 |
#ifdef ALLOW_DIAGNOSTICS |
#ifdef ALLOW_DIAGNOSTICS |
69 |
if(useDiagnostics) then |
if(useDiagnostics) then |
70 |
IF ( DIAGNOSTICS_IS_ON('DPPHYS ',myThid) ) THEN |
IF ( DIAGNOSTICS_IS_ON('DPPHYS ',myThid) ) THEN |
71 |
CALL DIAGNOSTICS_FILL(dpphys, 'DPPHYS ',0,Nrphys,0,1,1,myThid) |
do bj = myByLo(myThid), myByHi(myThid) |
72 |
ENDIF |
do bi = myBxLo(myThid), myBxHi(myThid) |
73 |
|
do L = 1,Nrphys |
74 |
|
do j = j1,j2 |
75 |
|
do i = i1,i2 |
76 |
|
temparr(i,j,L,bi,bj) = dpphys(i,j,L,bi,bj) * 1. _d -2 |
77 |
|
enddo |
78 |
|
enddo |
79 |
|
enddo |
80 |
|
enddo |
81 |
|
enddo |
82 |
|
CALL DIAGNOSTICS_FILL(temparr,'DPPHYS ',-1,Nrphys,0,1,1,myThid) |
83 |
|
ENDIF |
84 |
endif |
endif |
85 |
#endif |
#endif |
86 |
|
|