/[MITgcm]/MITgcm_contrib/dgoldberg/streamice/STREAMICE.h
ViewVC logotype

Annotation of /MITgcm_contrib/dgoldberg/streamice/STREAMICE.h

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


Revision 1.3 - (hide annotations) (download)
Thu May 17 21:30:17 2012 UTC (13 years, 2 months ago) by heimbach
Branch: MAIN
Changes since 1.2: +5 -2 lines
File MIME type: text/plain
Small modifs (don't do much)

1 heimbach 1.1 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
2    
3     #ifdef ALLOW_STREAMICE
4    
5     C -------------------------- REAL PARAMS ---------------------------------------------------
6    
7     COMMON /STREAMICE_PARMS_R/
8     & streamice_density, streamice_density_ocean_avg,
9     & A_glen_isothermal, n_glen, eps_glen_min,
10     & C_basal_fric_const, n_basal_friction, streamice_input_flux_unif,
11     & streamice_vel_update, streamice_cg_tol, streamice_nonlin_tol,
12     & streamice_CFL_factor
13     _RL streamice_density, streamice_density_ocean_avg
14     _RL A_glen_isothermal, n_glen, eps_glen_min
15     _RL C_basal_fric_const
16     _RL n_basal_friction
17     _RL streamice_input_flux_unif
18     _RL streamice_vel_update
19     _RL streamice_cg_tol, streamice_nonlin_tol
20     _RL streamice_CFL_factor
21    
22     C parms for parameterized initial thickness
23     C SHELF_MAX_DRAFT: max thickness of ice in m
24     C SHELF_MIN_DRAFT: min thickness of ice in m
25     C SHELF_EDGE_POS: extent of ice shelf in (km?)
26     C SHELF_SLOPE_SCALE: dist over which shelf slopes (km?)
27     C SHELF_FLAT_WIDTH: width of flat shelf (km?)
28     C also must be aware of units (m for cartesian, deg for curvilinear, m/deg for CYLINDRICAL POLAR)
29     C FLOW_DIR: 1.0=west, 2.0=east, 3.0=south, 4.0=north
30    
31     COMMON /STREAMICE_H_INIT_R/
32     & shelf_max_draft,
33     & shelf_min_draft,
34     & shelf_edge_pos,
35     & shelf_slope_scale,
36     & shelf_flat_width,
37     & flow_dir
38     _RL shelf_max_draft
39     _RL shelf_min_draft
40     _RL shelf_edge_pos
41     _RL shelf_slope_scale
42     _RL shelf_flat_width
43     _RL flow_dir
44    
45     C -------------------------- INT PARAMS ---------------------------------------------------
46    
47 heimbach 1.3 INTEGER streamice_max_nl
48     PARAMETER ( streamice_max_nl = 100 )
49    
50 heimbach 1.1 COMMON /STREAMICE_PARMS_I/
51     & streamice_max_cg_iter, streamice_max_nl_iter,
52     & streamice_vel_upd_counter, streamice_nstep_velocity,
53     & streamice_n_sub_regularize
54     INTEGER streamice_max_cg_iter, streamice_max_nl_iter
55     INTEGER streamice_vel_upd_counter, streamice_nstep_velocity
56     INTEGER streamice_n_sub_regularize
57    
58     C -------------------------- CHAR PARAMS ---------------------------------------------------
59    
60     CHARACTER*(MAX_LEN_FNAM) STREAMICEthickFile
61     CHARACTER*(MAX_LEN_FNAM) STREAMICEthickInit
62     CHARACTER*(MAX_LEN_FNAM) STREAMICEcalveMaskFile
63     COMMON /STREAMICE_PARM_C/
64     & STREAMICEthickInit,
65     & STREAMICEthickFile,
66     & STREAMICEcalveMaskFile
67    
68     C -------------------------- LOGICAL PARAMS ---------------------------------------------------
69    
70     LOGICAL STREAMICEison
71     LOGICAL STREAMICE_dump_mdsio
72     LOGICAL STREAMICE_tave_mdsio
73     LOGICAL STREAMICE_dump_mnc
74     LOGICAL STREAMICE_tave_mnc
75     LOGICAL STREAMICE_GL_regularize, STREAMICE_move_front
76     LOGICAL STREAMICE_calve_to_mask
77 heimbach 1.3 LOGICAL STREAMICE_construct_matrix
78 heimbach 1.1 LOGICAL STREAMICE_lower_cg_tol
79     COMMON /STREAMICE_PARM_L/
80     & STREAMICEison,
81     & STREAMICE_dump_mdsio, STREAMICE_tave_mdsio,
82     & STREAMICE_dump_mnc, STREAMICE_tave_mnc,
83     & STREAMICE_GL_regularize, STREAMICE_move_front,
84     & STREAMICE_calve_to_mask,
85 heimbach 1.3 & STREAMICE_construct_matrix,
86 heimbach 1.1 & STREAMICE_lower_cg_tol
87    
88     C -------------------------- AND NOW ARRAYS ---------------------------------------------------
89    
90     C EXPLANATION OF MASKS
91    
92     C STREAMICE_hmask VALUES 1=ice-covered cell
93     C 2=partially ice-covered cell (no dynamics)
94     C 0=ice-free cell (for now, it means the cell
95     C is treated as an open-ocean cell
96     C that ice shelf can flow into)
97     C -1=outside computational domain; will not change
98     C
99     C STREAMICE_umask VALUES 1=degree of freedom;
100     C 0=homogeneous dirich condition
101     C 3=inhomogeneous dirich condition
102    
103     C STREAMICE_vmask similar to umask
104    
105     C STREAMICE_ufacemask VALUES -1=unset,
106     C 0=no-flow boundary,
107     C 1=no-stress bdry
108     C 2=stress bdry condition,
109     C 3=inhomogeneous dirichlet boundary,
110     C 4=flux boundary: at these faces a flux will be specified by u_flux_bdry_SI
111     C
112     C STREAMICE_vfacemask similar to ufacemask
113     C STREAMICE_ufacemask_bdry field initialized at the beginning of simulation
114     C specified all ufacemask values except for calving front
115     C CONSTANT FOR A SIMULATION (ie not changes after streamice_init_fixed)
116     C STREAMICE_vfacemask_bdry CONSTANT FOR A SIMULATION
117     C STREAMICE_calve_mask specified allowed extent of ice shelf
118     C (should be integer, but don't know howvi sre to read ints from file)
119     C not necessarily used, but CONSTANT FOR A SIMULATION
120     C STREAMICE_float_cond will only be used if partial floatation is implemented
121    
122     C Short arrays (e.g. masks)
123     COMMON /STREAMICE_FIELDS_RS/
124     & STREAMICE_hmask,
125     & STREAMICE_umask,
126     & STREAMICE_vmask,
127     & STREAMICE_ufacemask,
128     & STREAMICE_vfacemask,
129     & STREAMICE_ufacemask_bdry,
130     & STREAMICE_vfacemask_bdry,
131     & STREAMICE_float_cond,
132     & STREAMICE_calve_mask
133     _RS STREAMICE_hmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
134     _RS STREAMICE_umask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
135     _RS STREAMICE_vmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
136     _RS STREAMICE_ufacemask
137     & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
138     _RS STREAMICE_vfacemask
139     & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
140     _RS STREAMICE_ufacemask_bdry
141     & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
142     _RS STREAMICE_vfacemask_bdry
143     & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
144     _RS STREAMICE_float_cond
145     & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
146     _RS STREAMICE_calve_mask
147     & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
148    
149     C NOTES :
150     C STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)
151     C STREAMICE_hmask IS PART OF **STATE**
152     C All other masks are updated within a timestep BASED ON STREAMICE_hmask
153    
154     C Number of quadrature points are hardcoded.. could turn into a CPP macro
155    
156     C REAL ARRAYS
157    
158     COMMON /STREAMICE_FIELDS_RL/
159     & H_streamice,
160     & U_streamice,
161     & V_streamice,
162     & visc_streamice,
163     & tau_beta_eff_streamice,
164     & float_frac_streamice,
165     & base_el_streamice,
166     & surf_el_streamice,
167     & area_shelf_streamice,
168     & mass_ice_streamice,
169     & u_flux_bdry_SI,
170     & v_flux_bdry_SI,
171     & h_bdry_values_SI,
172     & u_bdry_values_SI,
173     & v_bdry_values_SI,
174     & STREAMICE_dummy_array,
175     & C_basal_friction
176     _RL H_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
177     _RL U_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
178     _RL V_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
179     _RL visc_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
180     _RL tau_beta_eff_streamice(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
181     _RL float_frac_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
182     _RL surf_el_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
183     _RL base_el_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
184     _RL area_shelf_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
185     _RL mass_ice_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
186     _RL u_flux_bdry_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
187     _RL v_flux_bdry_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
188     _RL h_bdry_values_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
189     _RL u_bdry_values_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
190     _RL v_bdry_values_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
191     _RL C_basal_friction (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
192    
193     _RL STREAMICE_dummy_array (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
194    
195     C NOTES :
196     C REAL ARRAYS THAT COMPRISE "STATE":
197     C H_streamice,
198     C U_streamice,
199     C V_streamice,
200     C visc_streamice,
201     C tau_beta_eff_streamice,
202     C area_shelf_streamice
203     C (and don't forget STREAMICE_hmask)
204     C
205     C visc & tau are now calculated based on U,V in streamice_vel_solve
206     C but with Hybdrid stress formulation they will become part of
207     C velocity initial guess, so they are kept
208    
209    
210     #endif /* ALLOW_STREAMICE */
211    
212     CEH3 ;;; Local Variables: ***
213     CEH3 ;;; mode:fortran ***
214     CEH3 ;;; End: ***

  ViewVC Help
Powered by ViewVC 1.1.22