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

Annotation of /MITgcm/model/src/ini_salt.F

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


Revision 1.11 - (hide annotations) (download)
Mon Mar 27 22:25:44 2000 UTC (24 years, 2 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint28, checkpoint29, checkpoint27, branch-atmos-merge-freeze, branch-atmos-merge-start, checkpoint26, branch-atmos-merge-shapiro, checkpoint33, checkpoint32, checkpoint31, checkpoint30, checkpoint34, branch-atmos-merge-zonalfilt, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase7, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Changes since 1.10: +1 -6 lines
Removed unused variables and fixed some unitialized variables.

1 adcroft 1.11 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_salt.F,v 1.10 1999/05/18 18:01:13 adcroft Exp $
2 cnh 1.1
3 cnh 1.7 #include "CPP_OPTIONS.h"
4 cnh 1.1
5     CStartOfInterface
6     SUBROUTINE INI_SALT ( myThid )
7     C /==========================================================\
8     C | SUBROUTINE INI_SALT |
9     C | o Set model initial salinity field. |
10     C |==========================================================|
11     C | There are several options for setting the initial |
12     C | temperature file |
13     C | 1. Inline code |
14     C | 2. Vertical profile ( uniform S in X and Y ) |
15     C | 3. Three-dimensional data from a file. For example from |
16     C | Levitus or from a checkpoint file from a previous |
17     C | integration. |
18     C | In addition to setting the salinity field we also |
19     C | set the initial salinity tendency term here. |
20     C \==========================================================/
21 adcroft 1.9 IMPLICIT NONE
22 cnh 1.1
23     C === Global variables ===
24     #include "SIZE.h"
25     #include "EEPARAMS.h"
26     #include "PARAMS.h"
27     #include "GRID.h"
28     #include "DYNVARS.h"
29    
30     C == Routine arguments ==
31     C myThid - Number of this instance of INI_SALT
32     INTEGER myThid
33     CEndOfInterface
34    
35     C == Local variables ==
36     C bi,bj - Loop counters
37     C I,J,K
38     INTEGER bi, bj
39     INTEGER I, J, K
40    
41 cnh 1.3 _BARRIER
42    
43     IF ( hydrogSaltFile .EQ. ' ' ) THEN
44     C-- Initialise salinity field to the vertical reference profile
45     DO bj = myByLo(myThid), myByHi(myThid)
46     DO bi = myBxLo(myThid), myBxHi(myThid)
47 cnh 1.6 DO K=1,Nr
48 cnh 1.3 DO J=1,sNy
49     DO I=1,sNx
50     salt(I,J,K,bi,bj) = sRef(K)
51     ENDDO
52 cnh 1.1 ENDDO
53     ENDDO
54     ENDDO
55     ENDDO
56 cnh 1.3 ELSE
57     _BEGIN_MASTER( myThid )
58 cnh 1.4 CALL READ_FLD_XYZ_RL( hydrogSaltFile, ' ', salt, 0, myThid )
59 cnh 1.3 _END_MASTER(myThid)
60     ENDIF
61 cnh 1.1 C Set initial tendency terms
62     DO bj = myByLo(myThid), myByHi(myThid)
63     DO bi = myBxLo(myThid), myBxHi(myThid)
64 cnh 1.6 DO K=1,Nr
65 cnh 1.1 DO J=1,sNy
66     DO I=1,sNx
67     gs (I,J,K,bi,bj) = 0. _d 0
68     gsNM1(I,J,K,bi,bj) = 0. _d 0
69 adcroft 1.8 IF (hFacC(I,J,K,bi,bj).EQ.0) salt(I,J,K,bi,bj) = 0.
70 cnh 1.1 ENDDO
71     ENDDO
72     ENDDO
73     ENDDO
74     ENDDO
75     C
76     _EXCH_XYZ_R8(salt , myThid )
77     _EXCH_XYZ_R8(gs , myThid )
78     _EXCH_XYZ_R8(gsNM1 , myThid )
79 cnh 1.5
80 cnh 1.6 CALL PLOT_FIELD_XYZRL( salt, 'Initial Salinity' , Nr, 1, myThid )
81 cnh 1.5
82 cnh 1.1 RETURN
83     END

  ViewVC Help
Powered by ViewVC 1.1.22