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