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

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

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


Revision 1.16 - (show annotations) (download)
Wed Oct 10 15:02:42 2012 UTC (12 years, 9 months ago) by dgoldberg
Branch: MAIN
Changes since 1.15: +18 -9 lines
File MIME type: text/plain
new common blocks

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_nonlin_tol_fp,
13 & streamice_CFL_factor, streamice_adjDump,
14 & streamice_bg_surf_slope_x, streamice_bg_surf_slope_y,
15 & streamice_kx_b_init, streamice_ky_b_init,
16 & streamice_wgt_drift, streamice_wgt_surf,
17 & streamice_wgt_avthick, streamice_wgt_vel
18 _RL streamice_density, streamice_density_ocean_avg
19 _RL A_glen_isothermal, n_glen, eps_glen_min
20 _RL C_basal_fric_const
21 _RL n_basal_friction
22 _RL streamice_input_flux_unif
23 _RL streamice_vel_update
24 _RL streamice_cg_tol, streamice_nonlin_tol
25 _RL streamice_nonlin_tol_fp
26 _RL streamice_CFL_factor
27 _RL streamice_adjDump
28 _RL streamice_bg_surf_slope_x, streamice_bg_surf_slope_y
29 _RL streamice_kx_b_init, streamice_ky_b_init
30 _RL streamice_wgt_drift, streamice_wgt_surf
31 _RL streamice_wgt_avthick, streamice_wgt_vel
32
33
34 C parms for parameterized initial thickness
35 C SHELF_MAX_DRAFT: max thickness of ice in m
36 C SHELF_MIN_DRAFT: min thickness of ice in m
37 C SHELF_EDGE_POS: extent of ice shelf in (km?)
38 C SHELF_SLOPE_SCALE: dist over which shelf slopes (km?)
39 C SHELF_FLAT_WIDTH: width of flat shelf (km?)
40 C also must be aware of units (m for cartesian, deg for curvilinear, m/deg for CYLINDRICAL POLAR)
41 C FLOW_DIR: 1.0=west, 2.0=east, 3.0=south, 4.0=north
42
43 COMMON /STREAMICE_H_INIT_R/
44 & shelf_max_draft,
45 & shelf_min_draft,
46 & shelf_edge_pos,
47 & shelf_slope_scale,
48 & shelf_flat_width,
49 & flow_dir
50 _RL shelf_max_draft
51 _RL shelf_min_draft
52 _RL shelf_edge_pos
53 _RL shelf_slope_scale
54 _RL shelf_flat_width
55 _RL flow_dir
56
57 C -------------------------- INT PARAMS ---------------------------------------------------
58
59 INTEGER streamice_max_nl
60 PARAMETER ( streamice_max_nl = 100 )
61
62 COMMON /STREAMICE_PARMS_I/
63 & streamice_max_cg_iter, streamice_max_nl_iter,
64 & streamice_vel_upd_counter, streamice_nstep_velocity,
65 & streamice_n_sub_regularize
66 INTEGER streamice_max_cg_iter, streamice_max_nl_iter
67 INTEGER streamice_vel_upd_counter, streamice_nstep_velocity
68 INTEGER streamice_n_sub_regularize
69
70 C -------------------------- CHAR PARAMS ---------------------------------------------------
71
72 CHARACTER*(MAX_LEN_FNAM) STREAMICEthickFile
73 CHARACTER*(MAX_LEN_FNAM) STREAMICEthickInit
74 CHARACTER*(MAX_LEN_FNAM) STREAMICEcalveMaskFile
75 CHARACTER*(MAX_LEN_FNAM) STREAMICEsigcoordInit
76 CHARACTER*(MAX_LEN_FNAM) STREAMICEsigcoordFile
77 CHARACTER*(MAX_LEN_FNAM) STREAMICEdelsigFile
78 CHARACTER*(MAX_LEN_FNAM) STREAMICEbasalTracConfig
79 CHARACTER*(MAX_LEN_FNAM) STREAMICEbasalTracFile
80 CHARACTER*(MAX_LEN_FNAM) STREAMICEvelOptimFile
81 COMMON /STREAMICE_PARM_C/
82 & STREAMICEthickInit,
83 & STREAMICEthickFile,
84 & STREAMICEcalveMaskFile,
85 & STREAMICEsigcoordInit,
86 & STREAMICEsigcoordFile,
87 & STREAMICEdelsigFile,
88 & STREAMICEbasalTracConfig,
89 & STREAMICEbasalTracFile,
90 & STREAMICEvelOptimFile
91
92 C -------------------------- LOGICAL PARAMS ---------------------------------------------------
93
94 LOGICAL STREAMICEison
95 LOGICAL STREAMICE_dump_mdsio
96 LOGICAL STREAMICE_tave_mdsio
97 LOGICAL STREAMICE_dump_mnc
98 LOGICAL STREAMICE_tave_mnc
99 LOGICAL STREAMICE_GL_regularize, STREAMICE_move_front
100 LOGICAL STREAMICE_calve_to_mask
101 LOGICAL STREAMICE_construct_matrix
102 LOGICAL STREAMICE_lower_cg_tol
103 LOGICAL STREAMICE_diagnostic_only
104 LOGICAL STREAMICE_ppm_driving_stress
105 LOGICAL STREAMICE_h_ctrl_const_surf
106
107 C The following parameters specify periodic boundary conditions.
108 C For now this will completely override all other boundary conditions
109 C and apply to the entire boundary
110
111 LOGICAL STREAMICE_NS_periodic
112 LOGICAL STREAMICE_EW_periodic
113
114 C LOGICAL STREAMICE_hybrid_stress
115
116 COMMON /STREAMICE_PARM_L/
117 & STREAMICEison,
118 & STREAMICE_dump_mdsio, STREAMICE_tave_mdsio,
119 & STREAMICE_dump_mnc, STREAMICE_tave_mnc,
120 & STREAMICE_GL_regularize, STREAMICE_move_front,
121 & STREAMICE_calve_to_mask,
122 & STREAMICE_construct_matrix,
123 & STREAMICE_lower_cg_tol,
124 & STREAMICE_NS_periodic, STREAMICE_EW_periodic,
125 & STREAMICE_diagnostic_only,
126 & STREAMICE_ppm_driving_stress,
127 & STREAMICE_h_ctrl_const_surf
128
129 C -------------------------- AND NOW ARRAYS ---------------------------------------------------
130
131 C EXPLANATION OF MASKS
132
133 C STREAMICE_hmask VALUES 1=ice-covered cell
134 C 2=partially ice-covered cell (no dynamics)
135 C 0=ice-free cell (for now, it means the cell
136 C is treated as an open-ocean cell
137 C that ice shelf can flow into)
138 C -1=outside computational domain; will not change
139 C
140 C STREAMICE_umask VALUES 1=degree of freedom;
141 C 0=homogeneous dirich condition
142 C 3=inhomogeneous dirich condition
143
144 C STREAMICE_vmask similar to umask
145
146 C STREAMICE_ufacemask VALUES -1=unset,
147 C 0=no-flow boundary,
148 C 1=no-stress bdry
149 C 2=stress bdry condition,
150 C 3=inhomogeneous dirichlet boundary,
151 C 4=flux boundary: at these faces a flux will be specified by u_flux_bdry_SI
152 C
153 C STREAMICE_vfacemask similar to ufacemask
154 C STREAMICE_ufacemask_bdry field initialized at the beginning of simulation
155 C specified all ufacemask values except for calving front
156 C CONSTANT FOR A SIMULATION (ie not changes after streamice_init_fixed)
157 C STREAMICE_vfacemask_bdry CONSTANT FOR A SIMULATION
158 C STREAMICE_calve_mask specified allowed extent of ice shelf
159 C (should be integer, but don't know howvi sre to read ints from file)
160 C not necessarily used, but CONSTANT FOR A SIMULATION
161 C STREAMICE_float_cond will only be used if partial floatation is implemented
162
163 C Short arrays (e.g. masks)
164 COMMON /STREAMICE_FIELDS_RS/
165 & STREAMICE_hmask,
166 & STREAMICE_umask,
167 & STREAMICE_vmask,
168 & STREAMICE_ufacemask,
169 & STREAMICE_vfacemask,
170 & STREAMICE_ufacemask_bdry,
171 & STREAMICE_vfacemask_bdry,
172 & STREAMICE_float_cond,
173 & STREAMICE_calve_mask
174 _RS STREAMICE_hmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
175 _RS STREAMICE_umask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
176 _RS STREAMICE_vmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
177 _RS STREAMICE_ufacemask
178 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
179 _RS STREAMICE_vfacemask
180 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
181 _RS STREAMICE_ufacemask_bdry
182 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
183 _RS STREAMICE_vfacemask_bdry
184 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
185 _RS STREAMICE_float_cond
186 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
187 _RS STREAMICE_calve_mask
188 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
189
190 C NOTES :
191 C STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)
192 C STREAMICE_hmask IS PART OF **STATE**
193 C All other masks are updated within a timestep BASED ON STREAMICE_hmask
194
195 C Number of quadrature points are hardcoded.. could turn into a CPP macro
196
197 C REAL ARRAYS
198
199 COMMON /STREAMICE_FIELDS_RL/
200 & H_streamice,
201 & U_streamice,
202 & V_streamice,
203 & visc_streamice,
204 & tau_beta_eff_streamice,
205 & float_frac_streamice,
206 & base_el_streamice,
207 & surf_el_streamice,
208 & area_shelf_streamice,
209 & mass_ice_streamice,
210 & u_flux_bdry_SI,
211 & v_flux_bdry_SI,
212 & h_bdry_values_SI,
213 & u_bdry_values_SI,
214 & v_bdry_values_SI,
215 & STREAMICE_dummy_array,
216 & C_basal_friction,
217 & A_glen,
218 & BDOT_streamice,
219 & streamice_sigma_coord, streamice_delsigma,
220 & H_streamice_prev
221
222 #ifdef STREAMICE_HYBRID_STRESS
223 COMMON /STREAMICE_HYBRID/
224 & streamice_taubx, streamice_tauby,
225 & streamice_u_surf, streamice_v_surf,
226 & visc_streamice_full, streamice_omega, streamice_basal_geom,
227 & streamice_vert_shear_uz, streamice_vert_shear_vz
228 #endif
229
230 #ifdef USE_ALT_RLOW
231 COMMON /STREAMICE_RLOW/
232 & R_low_si
233 #endif
234
235
236 _RL H_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
237 _RL U_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
238 _RL V_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
239 _RL visc_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
240 _RL tau_beta_eff_streamice(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
241 _RL float_frac_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
242 _RL surf_el_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
243 _RL base_el_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
244 _RL area_shelf_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
245 _RL mass_ice_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
246 _RL u_flux_bdry_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
247 _RL v_flux_bdry_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
248 _RL h_bdry_values_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
249 _RL u_bdry_values_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
250 _RL v_bdry_values_SI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
251 _RL C_basal_friction (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
252 _RL A_glen (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
253 _RL streamice_sigma_coord (Nr)
254 _RL streamice_delsigma (Nr)
255
256 #ifdef USE_ALT_RLOW
257 _RL R_low_si (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
258 #endif
259
260 C The following arrays are used for the hybrid stress balance
261 #ifdef STREAMICE_HYBRID_STRESS
262 _RL streamice_taubx (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
263 _RL streamice_tauby (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
264 _RL streamice_u_surf (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
265 _RL streamice_v_surf (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
266 _RL streamice_omega (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
267 _RL streamice_basal_geom
268 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
269 _RL visc_streamice_full
270 & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
271 _RL streamice_vert_shear_uz (Nr)
272 _RL streamice_vert_shear_vz (Nr)
273 #endif
274
275
276 !! IMPORTANT: MELT RATE IN METERS PER YEAR
277 !! POSITIVE WHERE MELTING
278 _RL BDOT_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
279 _RL H_streamice_prev (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
280 _RL STREAMICE_dummy_array (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
281
282
283
284 COMMON /STREAMICE_COST_RL/
285 & cost_func1_streamice
286 _RL cost_func1_streamice(nSx,nSy)
287
288 C NOTES :
289 C REAL ARRAYS THAT COMPRISE "STATE":
290 C H_streamice,
291 C U_streamice,
292 C V_streamice,
293 C visc_streamice,
294 C tau_beta_eff_streamice,
295 C area_shelf_streamice
296 C (and don't forget STREAMICE_hmask)
297 C
298 C visc & tau are now calculated based on U,V in streamice_vel_solve
299 C but with Hybdrid stress formulation they will become part of
300 C velocity initial guess, so they are kept
301
302
303 #endif /* ALLOW_STREAMICE */
304
305 CEH3 ;;; Local Variables: ***
306 CEH3 ;;; mode:fortran ***
307 CEH3 ;;; End: ***

  ViewVC Help
Powered by ViewVC 1.1.22