34 |
#include "PARAMS.h" |
#include "PARAMS.h" |
35 |
#include "EOS.h" |
#include "EOS.h" |
36 |
#include "GRID.h" |
#include "GRID.h" |
|
#include "SURFACE.h" |
|
37 |
|
|
38 |
C !INPUT/OUTPUT PARAMETERS: |
C !INPUT/OUTPUT PARAMETERS: |
39 |
C == Routine arguments == |
C == Routine arguments == |
49 |
|
|
50 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
51 |
C == Local variables == |
C == Local variables == |
52 |
INTEGER i,j,kr |
INTEGER i,j |
53 |
_RL refTemp,refSalt,sigRef,tP,sP,deltaSig,dRho |
_RL refTemp,refSalt,sigRef,tP,sP,deltaSig,dRho |
54 |
_RL locPres(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RL locPres(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
55 |
_RL rhoP0 (1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RL rhoP0 (1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
76 |
|
|
77 |
IF (equationOfState.EQ.'LINEAR') THEN |
IF (equationOfState.EQ.'LINEAR') THEN |
78 |
|
|
79 |
IF ( usingPCoords ) THEN |
C ***NOTE*** |
80 |
kr = Nr |
C In the linear EOS, to make the static stability calculation meaningful |
81 |
ELSE |
C we alway calculate the perturbation with respect to the surface level. |
82 |
kr = 1 |
C ********** |
83 |
ENDIF |
refTemp=tRef(kRef) |
84 |
refTemp=tRef(kr) |
refSalt=sRef(kRef) |
85 |
refSalt=sRef(kr) |
|
86 |
dRho = rhoNil-rhoConst |
dRho = rhoNil-rhoConst |
87 |
|
|
88 |
DO j=jMin,jMax |
DO j=jMin,jMax |
93 |
& + dRho |
& + dRho |
94 |
ENDDO |
ENDDO |
95 |
ENDDO |
ENDDO |
96 |
|
|
97 |
ELSEIF (equationOfState.EQ.'POLY3') THEN |
ELSEIF (equationOfState.EQ.'POLY3') THEN |
98 |
|
|
99 |
refTemp=eosRefT(kRef) |
refTemp=eosRefT(kRef) |