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

Contents of /MITgcm/model/src/freeze_surface.F

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


Revision 1.3 - (show annotations) (download)
Tue Nov 18 00:02:30 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52n_post, checkpoint52j_post, checkpoint53d_post, checkpoint54a_pre, checkpoint52e_post, checkpoint54a_post, checkpoint53c_post, hrcube_1, branch-netcdf, checkpoint52d_pre, checkpoint52l_post, checkpoint53b_post, checkpoint52k_post, checkpoint52b_pre, checkpoint54b_post, checkpoint53b_pre, checkpoint52m_post, checkpoint53a_post, checkpoint54, checkpoint53, checkpoint52d_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint52c_post, hrcube5, checkpoint52i_post, checkpoint52j_pre, checkpoint53f_post, checkpoint53d_pre, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3
Branch point for: netcdf-sm0
Changes since 1.2: +2 -1 lines
#include "PACKAGES_CONFIG.h" necessary (for now) when FFIELDS.h is included

1 C $Header: /u/gcmpack/MITgcm/model/src/freeze_surface.F,v 1.2 2003/11/17 23:43:06 heimbach Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: FREEZE_SURFACE
9 C !INTERFACE:
10 SUBROUTINE FREEZE_SURFACE( myTime, myIter, myThid )
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | S/R FREEZE_SURFACE
14 C | o Check water temperature and limit range of temperature
15 C | appropriately.
16 C *==========================================================*
17 C \ev
18
19 C !USES:
20 IMPLICIT NONE
21 C == Global variables ==
22 #include "SIZE.h"
23 #include "EEPARAMS.h"
24 #include "PARAMS.h"
25 #include "DYNVARS.h"
26 c #include "GRID.h"
27 #include "FFIELDS.h"
28
29 C !INPUT/OUTPUT PARAMETERS:
30 C == Routine Arguments ==
31 C myTime - Current time in simulation
32 C myIter - Current iteration number in simulation
33 C myThid :: Thread no. that called this routine.
34 _RL myTime
35 INTEGER myIter
36 INTEGER myThid
37
38 C !LOCAL VARIABLES:
39 C == Local variables ==
40 C Tfreezing :: Freezing threshold temperature.
41 INTEGER bi,bj,i,j,k
42 _RL Tfreezing
43 CEOP
44
45 IF ( buoyancyRelation .EQ. 'OCEANICP' ) THEN
46 k = Nr
47 ELSE
48 k= 1
49 ENDIF
50
51 Tfreezing = -1.9 _d 0
52
53 C Check for water that should have frozen
54 DO bj=myByLo(myThid),myByHi(myThid)
55 DO bi=myBxLo(myThid),myBxHi(myThid)
56 DO j=1-OLy,sNy+OLy
57 DO i=1-OLx,sNx+OLx
58 IF (theta(I,J,k,bi,bj) .LT. Tfreezing) THEN
59 surfaceTendencyTice(I,J,bi,bj) =
60 & ( Tfreezing - theta(I,J,k,bi,bj) ) / deltaTtracer
61 theta(I,J,k,bi,bj) = Tfreezing
62 ELSE
63 surfacetendencyTice(I,J,bi,bj) = 0. _d 0
64 ENDIF
65 ENDDO
66 ENDDO
67 ENDDO
68 ENDDO
69
70 RETURN
71 END

  ViewVC Help
Powered by ViewVC 1.1.22