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

Diff of /MITgcm/model/src/set_ref_state.F

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

revision 1.2 by jmc, Sat Sep 6 17:42:27 2008 UTC revision 1.3 by jmc, Thu Oct 2 00:34:21 2008 UTC
# Line 252  C---+----1----+----2----+----3----+----4 Line 252  C---+----1----+----2----+----3----+----4
252  C--   endif buoyancyRelation  C--   endif buoyancyRelation
253        ENDIF        ENDIF
254    
255    C--   fill-in phiRef array (presently not used)
256          IF ( buoyancyRelation.EQ.'OCEANIC' ) THEN
257    c       phiRef(1) = gravitySign*gravity*(rF(1)-Ro_SeaLevel)
258            phiRef(1) = 0. _d 0
259            DO k=1,Nr
260              phiRef(2*k)   = gravitySign*gravity*(rC(k) - Ro_SeaLevel)
261              phiRef(2*k+1) = gravitySign*gravity*(rF(k+1)-Ro_SeaLevel)
262            ENDDO
263          ELSEIF ( buoyancyRelation.EQ.'OCEANICP' ) THEN
264    C     should be : phiRef = phi_Origin - (rC - Ro_SeaLevel)/rhoConst
265    C-    but since the reference geopotential "phi_Origin" @ p = rF(k=1)
266    C     is not currently stored, we only get a relative geopotential:
267            phiRef(1) = -recip_rhoConst*rF(1)
268            DO k=1,Nr
269              phiRef(2*k)   = -recip_rhoConst*rC(k)
270              phiRef(2*k+1) = -recip_rhoConst*rF(k+1)
271            ENDDO
272          ENDIF
273    
274  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
275    
276        IF ( usingZCoords .AND. rhoRefFile .NE. ' ' ) THEN        IF ( usingZCoords .AND. rhoRefFile .NE. ' ' ) THEN

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22