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

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

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

revision 1.8 by dgoldberg, Wed Sep 26 15:16:51 2012 UTC revision 1.17 by dgoldberg, Mon Dec 10 02:34:45 2012 UTC
# Line 1  Line 1 
1  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|  C---+----1--+-+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
2    
3  #ifdef ALLOW_STREAMICE  #ifdef ALLOW_STREAMICE
4    
# Line 6  C     -------------------------- REAL PA Line 6  C     -------------------------- REAL PA
6    
7        COMMON /STREAMICE_PARMS_R/        COMMON /STREAMICE_PARMS_R/
8       & streamice_density, streamice_density_ocean_avg,       & streamice_density, streamice_density_ocean_avg,
9       & A_glen_isothermal, n_glen, eps_glen_min,       & A_glen_isothermal, n_glen, eps_glen_min, eps_u_min,
10       & C_basal_fric_const, n_basal_friction, streamice_input_flux_unif,       & C_basal_fric_const, n_basal_friction, streamice_input_flux_unif,
11       & streamice_vel_update, streamice_cg_tol, streamice_nonlin_tol,       & streamice_vel_update, streamice_cg_tol, streamice_nonlin_tol,
12       & streamice_nonlin_tol_fp,       & streamice_nonlin_tol_fp,
13       & streamice_CFL_factor, streamice_adjDump,       & streamice_CFL_factor, streamice_adjDump,
14       & streamice_bg_surf_slope_x, streamice_bg_surf_slope_y,       & streamice_bg_surf_slope_x, streamice_bg_surf_slope_y,
15       & streamice_kx_b_init, streamice_ky_b_init       & streamice_kx_b_init, streamice_ky_b_init,
16         & streamice_wgt_drift, streamice_wgt_surf,
17         & streamice_wgt_avthick, streamice_wgt_vel,
18         & streamice_addl_backstress
19        _RL streamice_density, streamice_density_ocean_avg        _RL streamice_density, streamice_density_ocean_avg
20        _RL A_glen_isothermal, n_glen, eps_glen_min        _RL A_glen_isothermal, n_glen, eps_glen_min, eps_u_min
21        _RL C_basal_fric_const        _RL C_basal_fric_const
22        _RL n_basal_friction        _RL n_basal_friction
23        _RL streamice_input_flux_unif        _RL streamice_input_flux_unif
# Line 25  C     -------------------------- REAL PA Line 28  C     -------------------------- REAL PA
28        _RL streamice_adjDump        _RL streamice_adjDump
29        _RL streamice_bg_surf_slope_x, streamice_bg_surf_slope_y        _RL streamice_bg_surf_slope_x, streamice_bg_surf_slope_y
30        _RL streamice_kx_b_init, streamice_ky_b_init        _RL streamice_kx_b_init, streamice_ky_b_init
31          _RL streamice_wgt_drift, streamice_wgt_surf
32          _RL streamice_wgt_avthick, streamice_wgt_vel
33          _RL streamice_addl_backstress
34          
35                
36  C     parms for parameterized initial thickness  C     parms for parameterized initial thickness
37  C     SHELF_MAX_DRAFT: max thickness of ice in m  C     SHELF_MAX_DRAFT: max thickness of ice in m
# Line 96  C     -------------------------- LOGICAL Line 103  C     -------------------------- LOGICAL
103        LOGICAL STREAMICE_construct_matrix        LOGICAL STREAMICE_construct_matrix
104        LOGICAL STREAMICE_lower_cg_tol        LOGICAL STREAMICE_lower_cg_tol
105        LOGICAL STREAMICE_diagnostic_only        LOGICAL STREAMICE_diagnostic_only
106          LOGICAL STREAMICE_ppm_driving_stress
107        LOGICAL STREAMICE_h_ctrl_const_surf        LOGICAL STREAMICE_h_ctrl_const_surf
108                
109  C     The following parameters specify periodic boundary conditions.  C     The following parameters specify periodic boundary conditions.
# Line 116  C      LOGICAL STREAMICE_hybrid_stress Line 124  C      LOGICAL STREAMICE_hybrid_stress
124       & STREAMICE_construct_matrix,       & STREAMICE_construct_matrix,
125       & STREAMICE_lower_cg_tol,       & STREAMICE_lower_cg_tol,
126       & STREAMICE_NS_periodic, STREAMICE_EW_periodic,       & STREAMICE_NS_periodic, STREAMICE_EW_periodic,
127       & STREAMICE_diagnostic_only       & STREAMICE_diagnostic_only,
128         & STREAMICE_ppm_driving_stress,
129         & STREAMICE_h_ctrl_const_surf
130    
131  C     -------------------------- AND NOW ARRAYS ---------------------------------------------------  C     -------------------------- AND NOW ARRAYS ---------------------------------------------------
132    
# Line 162  C     Short arrays (e.g. masks) Line 172  C     Short arrays (e.g. masks)
172       &     STREAMICE_ufacemask_bdry,       &     STREAMICE_ufacemask_bdry,
173       &     STREAMICE_vfacemask_bdry,       &     STREAMICE_vfacemask_bdry,
174       &     STREAMICE_float_cond,       &     STREAMICE_float_cond,
175       &     STREAMICE_calve_mask       &     STREAMICE_calve_mask,
176         &     STREAMICE_ctrl_mask
177        _RS STREAMICE_hmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RS STREAMICE_hmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
178        _RS STREAMICE_umask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RS STREAMICE_umask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
179        _RS STREAMICE_vmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RS STREAMICE_vmask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
# Line 178  C     Short arrays (e.g. masks) Line 189  C     Short arrays (e.g. masks)
189       &  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)       &  (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
190        _RS STREAMICE_calve_mask        _RS STREAMICE_calve_mask
191       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
192          _RS STREAMICE_ctrl_mask
193         & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy,Nr)
194            
195  C    NOTES :  C    NOTES :
196  C     STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)  C     STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)
# Line 208  C    REAL ARRAYS Line 221  C    REAL ARRAYS
221       &     C_basal_friction,       &     C_basal_friction,
222       &     A_glen,       &     A_glen,
223       &     BDOT_streamice,       &     BDOT_streamice,
224         &     streamice_sigma_coord, streamice_delsigma,
225         &     H_streamice_prev
226    
227    #ifdef STREAMICE_HYBRID_STRESS
228          COMMON /STREAMICE_HYBRID/
229       &     streamice_taubx, streamice_tauby,       &     streamice_taubx, streamice_tauby,
230       &     streamice_u_surf, streamice_v_surf,       &     streamice_u_surf, streamice_v_surf,
231       &     visc_streamice_full, streamice_omega, streamice_basal_geom,       &     visc_streamice_full, streamice_omega, streamice_basal_geom,
232       &     streamice_vert_shear_uz, streamice_vert_shear_vz,       &     streamice_vert_shear_uz, streamice_vert_shear_vz    
233       &     streamice_sigma_coord, streamice_delsigma  #endif
234    
235    #ifdef USE_ALT_RLOW
236          COMMON /STREAMICE_RLOW/
237         &     R_low_si
238    #endif
239    
240    
241        _RL H_streamice           (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL H_streamice           (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
242        _RL U_streamice           (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL U_streamice           (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
243        _RL V_streamice           (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL V_streamice           (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
# Line 230  C    REAL ARRAYS Line 255  C    REAL ARRAYS
255        _RL v_bdry_values_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL v_bdry_values_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
256        _RL C_basal_friction    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL C_basal_friction    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
257        _RL A_glen    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL A_glen    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
258                _RL streamice_sigma_coord (Nr)
259  C      The following arrays are used for the hybrid stress balance              _RL streamice_delsigma (Nr)      
260          
261    #ifdef USE_ALT_RLOW
262          _RL R_low_si    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
263    #endif
264    
265    C     The following arrays are used for the hybrid stress balance            
266    #ifdef STREAMICE_HYBRID_STRESS      
267        _RL streamice_taubx (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL streamice_taubx (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
268        _RL streamice_tauby (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL streamice_tauby (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
269        _RL streamice_u_surf (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL streamice_u_surf (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
# Line 244  C      The following arrays are used for Line 275  C      The following arrays are used for
275       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
276        _RL streamice_vert_shear_uz (Nr)        _RL streamice_vert_shear_uz (Nr)
277        _RL streamice_vert_shear_vz (Nr)        _RL streamice_vert_shear_vz (Nr)
278        _RL streamice_sigma_coord (Nr)  #endif      
279        _RL streamice_delsigma (Nr)        
280                
281  !! IMPORTANT: MELT RATE IN METERS PER YEAR  !! IMPORTANT: MELT RATE IN METERS PER YEAR
282  !! POSITIVE WHERE MELTING  !! POSITIVE WHERE MELTING
283        _RL BDOT_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL BDOT_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
284                _RL H_streamice_prev (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
285        _RL STREAMICE_dummy_array (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL STREAMICE_dummy_array (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
286                
287          
288              
289          COMMON /STREAMICE_COST_RL/
290         &       cost_func1_streamice
291          _RL cost_func1_streamice(nSx,nSy)
292          
293  C    NOTES :  C    NOTES :
294  C      REAL ARRAYS THAT COMPRISE "STATE":  C      REAL ARRAYS THAT COMPRISE "STATE":
295  C       H_streamice,  C       H_streamice,

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.22