/[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.18 by dgoldberg, Wed Jan 9 21:56:17 2013 UTC revision 1.22 by dgoldberg, Sat Jun 8 22:15:33 2013 UTC
# 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, eps_u_min,  !     & A_glen_isothermal, n_glen, eps_glen_min, eps_u_min,
10         & B_glen_isothermal, n_glen, eps_glen_min, eps_u_min,
11       & C_basal_fric_const, n_basal_friction, streamice_input_flux_unif,       & C_basal_fric_const, n_basal_friction, streamice_input_flux_unif,
12       & streamice_vel_update, streamice_cg_tol, streamice_nonlin_tol,       & streamice_vel_update, streamice_cg_tol, streamice_nonlin_tol,
13       & streamice_nonlin_tol_fp,       & streamice_nonlin_tol_fp,
# Line 16  C     -------------------------- REAL PA Line 17  C     -------------------------- REAL PA
17       & streamice_wgt_drift, streamice_wgt_surf,       & streamice_wgt_drift, streamice_wgt_surf,
18       & streamice_wgt_avthick, streamice_wgt_vel,       & streamice_wgt_avthick, streamice_wgt_vel,
19       & streamice_wgt_tikh,       & streamice_wgt_tikh,
20       & streamice_addl_backstress       & streamice_addl_backstress,
21         & streamice_smooth_gl_width
22        _RL streamice_density, streamice_density_ocean_avg        _RL streamice_density, streamice_density_ocean_avg
23        _RL A_glen_isothermal, n_glen, eps_glen_min, eps_u_min  !      _RL A_glen_isothermal, n_glen, eps_glen_min, eps_u_min
24          _RL B_glen_isothermal, n_glen, eps_glen_min, eps_u_min
25        _RL C_basal_fric_const        _RL C_basal_fric_const
26        _RL n_basal_friction        _RL n_basal_friction
27        _RL streamice_input_flux_unif        _RL streamice_input_flux_unif
# Line 33  C     -------------------------- REAL PA Line 36  C     -------------------------- REAL PA
36        _RL streamice_wgt_avthick, streamice_wgt_vel        _RL streamice_wgt_avthick, streamice_wgt_vel
37        _RL streamice_wgt_tikh        _RL streamice_wgt_tikh
38        _RL streamice_addl_backstress        _RL streamice_addl_backstress
39          _RL streamice_smooth_gl_width
40                
41                
42  C     parms for parameterized initial thickness  C     parms for parameterized initial thickness
# Line 84  C     -------------------------- CHAR PA Line 88  C     -------------------------- CHAR PA
88        CHARACTER*(MAX_LEN_FNAM) STREAMICEbasalTracFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEbasalTracFile
89        CHARACTER*(MAX_LEN_FNAM) STREAMICEGlenConstFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEGlenConstFile
90        CHARACTER*(MAX_LEN_FNAM) STREAMICEvelOptimFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEvelOptimFile
91          CHARACTER*(MAX_LEN_FNAM) STREAMICEtopogFile
92          CHARACTER*(MAX_LEN_FNAM) STREAMICEcostMaskFile
93          CHARACTER*(MAX_LEN_FNAM) STREAMICE_ADV_SCHEME
94                
95  !     THE FOLLOWING FILENAMES ARE FOR SPECIFYING IRREGULAR DOMAIN GEOMETRIES  !     THE FOLLOWING FILENAMES ARE FOR SPECIFYING IRREGULAR DOMAIN GEOMETRIES
96  !     (i.e. boundaries that do not conform with rectangular walls)  !     (i.e. boundaries that do not conform with rectangular walls)
97        CHARACTER*(MAX_LEN_FNAM) STREAMICEhmaskFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEhmaskFile
98          CHARACTER*(MAX_LEN_FNAM) STREAMICEHBCxFile
99          CHARACTER*(MAX_LEN_FNAM) STREAMICEHBCyFile
100        CHARACTER*(MAX_LEN_FNAM) STREAMICEuFaceBdryFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEuFaceBdryFile
101        CHARACTER*(MAX_LEN_FNAM) STREAMICEvFaceBdryFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEvFaceBdryFile
102        CHARACTER*(MAX_LEN_FNAM) STREAMICEuDirichValsFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEuDirichValsFile
103        CHARACTER*(MAX_LEN_FNAM) STREAMICEvDirichValsFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEvDirichValsFile
104          
105          #ifdef ALLOW_PETSC
106    !     CHARACTER PARAMS FOR PETSC
107          CHARACTER*(MAX_LEN_FNAM) PETSC_SOLVER_TYPE
108          CHARACTER*(MAX_LEN_FNAM) PETSC_PRECOND_TYPE
109    #endif
110        
111    #ifdef ALLOW_STREAMICE_2DTRACER
112    !     CHARACTER PARAMS FOR TRACER
113          CHARACTER*(MAX_LEN_FNAM) STREAMICETrac2DBCxFile
114          CHARACTER*(MAX_LEN_FNAM) STREAMICETrac2DBCyFile
115          CHARACTER*(MAX_LEN_FNAM) STREAMICETrac2DinitFile
116    #endif
117        
118        COMMON /STREAMICE_PARM_C/        COMMON /STREAMICE_PARM_C/
119       &     STREAMICEthickInit,       &     STREAMICEthickInit,
120       &     STREAMICEthickFile,       &     STREAMICEthickFile,
# Line 104  C     -------------------------- CHAR PA Line 125  C     -------------------------- CHAR PA
125       &     STREAMICEbasalTracConfig,       &     STREAMICEbasalTracConfig,
126       &     STREAMICEbasalTracFile,       &     STREAMICEbasalTracFile,
127       &     STREAMICEvelOptimFile,       &     STREAMICEvelOptimFile,
128         &     STREAMICEtopogFile,
129       &     STREAMICEhmaskFile,       &     STREAMICEhmaskFile,
130         &     STREAMICEHBCxFile,
131         &     STREAMICEHBCyFile,
132       &     STREAMICEuFaceBdryFile,       &     STREAMICEuFaceBdryFile,
133       &     STREAMICEvFaceBdryFile,       &     STREAMICEvFaceBdryFile,
134       &     STREAMICEuDirichValsFile,       &     STREAMICEuDirichValsFile,
135       &     STREAMICEvDirichValsFile,       &     STREAMICEvDirichValsFile,
136       &     STREAMICEGlenConstFile,       &     STREAMICEGlenConstFile,
137       &     STREAMICEGlenConstConfig       &     STREAMICEGlenConstConfig,
138         &     STREAMICEcostMaskFile,
139         &     STREAMICE_ADV_SCHEME
140    
141    #ifdef ALLOW_PETSC
142          COMMON /PETSC_PARM_C/
143         &     PETSC_SOLVER_TYPE,
144         &     PETSC_PRECOND_TYPE
145    #endif
146    
147    #ifdef ALLOW_STREAMICE_2DTRACER
148          COMMON /STREAMICE_TRAC2D_C/
149         &     STREAMICETrac2DBCxFile,
150         &     STREAMICETrac2DBCyFile,
151         &     STREAMICETrac2DinitFile
152    #endif
153            
154  C     -------------------------- LOGICAL PARAMS ---------------------------------------------------  C     -------------------------- LOGICAL PARAMS ---------------------------------------------------
155    
# Line 194  C     Short arrays (e.g. masks) Line 233  C     Short arrays (e.g. masks)
233       &     STREAMICE_vfacemask_bdry,       &     STREAMICE_vfacemask_bdry,
234       &     STREAMICE_float_cond,       &     STREAMICE_float_cond,
235       &     STREAMICE_calve_mask,       &     STREAMICE_calve_mask,
236       &     STREAMICE_ctrl_mask       &     STREAMICE_ctrl_mask,
237         &     STREAMICE_cost_mask
238        _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)
239        _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)
240        _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 211  C     Short arrays (e.g. masks) Line 251  C     Short arrays (e.g. masks)
251        _RS STREAMICE_calve_mask        _RS STREAMICE_calve_mask
252       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
253        _RS STREAMICE_ctrl_mask        _RS STREAMICE_ctrl_mask
254       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy,Nr)       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
255          _RS STREAMICE_cost_mask
256         & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
257            
258  C    NOTES :  C    NOTES :
259  C     STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)  C     STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)
# Line 235  C    REAL ARRAYS Line 277  C    REAL ARRAYS
277       &     mass_ice_streamice,       &     mass_ice_streamice,
278       &     u_flux_bdry_SI,       &     u_flux_bdry_SI,
279       &     v_flux_bdry_SI,       &     v_flux_bdry_SI,
280       &     h_bdry_values_SI,       &     h_ubdry_values_SI,
281         &     h_vbdry_values_SI,
282       &     u_bdry_values_SI,       &     u_bdry_values_SI,
283       &     v_bdry_values_SI,       &     v_bdry_values_SI,
284       &     STREAMICE_dummy_array,       &     STREAMICE_dummy_array,
285       &     C_basal_friction,       &     C_basal_friction,
286       &     A_glen,  !     &     A_glen,
287         &     B_glen,
288       &     BDOT_streamice, ADOT_streamice,  ! mass balances in meters per year       &     BDOT_streamice, ADOT_streamice,  ! mass balances in meters per year
289       &     streamice_sigma_coord, streamice_delsigma,       &     streamice_sigma_coord, streamice_delsigma,
290       &     H_streamice_prev       &     H_streamice_prev
# Line 253  C    REAL ARRAYS Line 297  C    REAL ARRAYS
297       &     streamice_vert_shear_uz, streamice_vert_shear_vz           &     streamice_vert_shear_uz, streamice_vert_shear_vz    
298  #endif  #endif
299    
300    #ifdef ALLOW_STREAMICE_2DTRACER
301          COMMON /STREAMICE_TRAC2D_FIELDS_RL/
302         &     trac2d_ubdry_values_SI,
303         &     trac2d_vbdry_values_SI,
304         &     trac2d
305    #ifdef STREAMICE_TRACER_AB
306          COMMON /STREAMICE_TRAC2D_AB_RL/
307         &     GAD_trac_2d
308    #endif
309    #endif
310    
311  #ifdef USE_ALT_RLOW  #ifdef USE_ALT_RLOW
312        COMMON /STREAMICE_RLOW/        COMMON /STREAMICE_RLOW/
313       &     R_low_si       &     R_low_si
# Line 271  C    REAL ARRAYS Line 326  C    REAL ARRAYS
326        _RL mass_ice_streamice    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL mass_ice_streamice    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
327        _RL u_flux_bdry_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL u_flux_bdry_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
328        _RL v_flux_bdry_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL v_flux_bdry_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
329        _RL h_bdry_values_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL h_ubdry_values_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
330          _RL h_vbdry_values_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
331        _RL u_bdry_values_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL u_bdry_values_SI    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
332        _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)
333        _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)
334        _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)
335          _RL B_glen    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
336        _RL streamice_sigma_coord (Nr)        _RL streamice_sigma_coord (Nr)
337        _RL streamice_delsigma (Nr)              _RL streamice_delsigma (Nr)      
338    
# Line 297  C     The following arrays are used for Line 354  C     The following arrays are used for
354        _RL streamice_vert_shear_uz (Nr)        _RL streamice_vert_shear_uz (Nr)
355        _RL streamice_vert_shear_vz (Nr)        _RL streamice_vert_shear_vz (Nr)
356  #endif        #endif      
357              
358    #ifdef ALLOW_STREAMICE_2DTRACER
359          _RL trac2d_ubdry_values_SI
360         &   (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
361          _RL trac2d_vbdry_values_SI
362         &   (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
363          _RL trac2d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
364    #ifdef STREAMICE_TRACER_AB
365          _RL GAD_trac_2d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
366    #endif
367    #endif
368                
369        _RL ADOT_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RL ADOT_streamice (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
370  !! IMPORTANT: MELT RATE IN METERS PER YEAR  !! IMPORTANT: MELT RATE IN METERS PER YEAR
# Line 325  C Line 392  C
392  C       visc & tau are now calculated based on U,V in streamice_vel_solve  C       visc & tau are now calculated based on U,V in streamice_vel_solve
393  C        but with Hybdrid stress formulation they will become part of  C        but with Hybdrid stress formulation they will become part of
394  C        velocity initial guess, so they are kept  C        velocity initial guess, so they are kept
395    
396    #ifdef ALLOW_PETSC
397          COMMON /STREAMICE_PETSC_DOFS_COMMON/
398         &      streamice_petsc_dofs_u,
399         &      streamice_petsc_dofs_v,
400         &      n_dofs_process
401          _RS streamice_petsc_dofs_u
402         & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
403          _RS streamice_petsc_dofs_v
404         & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
405          INTEGER n_dofs_process (0:nPx*nPy-1)
406    #endif
407                
408                
409  #endif /* ALLOW_STREAMICE */  #endif /* ALLOW_STREAMICE */

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.22