/[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.20 by dgoldberg, Sat Apr 6 17:43:41 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                
94  !     THE FOLLOWING FILENAMES ARE FOR SPECIFYING IRREGULAR DOMAIN GEOMETRIES  !     THE FOLLOWING FILENAMES ARE FOR SPECIFYING IRREGULAR DOMAIN GEOMETRIES
95  !     (i.e. boundaries that do not conform with rectangular walls)  !     (i.e. boundaries that do not conform with rectangular walls)
# Line 92  C     -------------------------- CHAR PA Line 98  C     -------------------------- CHAR PA
98        CHARACTER*(MAX_LEN_FNAM) STREAMICEvFaceBdryFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEvFaceBdryFile
99        CHARACTER*(MAX_LEN_FNAM) STREAMICEuDirichValsFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEuDirichValsFile
100        CHARACTER*(MAX_LEN_FNAM) STREAMICEvDirichValsFile        CHARACTER*(MAX_LEN_FNAM) STREAMICEvDirichValsFile
101    
102    !     CHARACTER PARAMS FOR PETSC
103          CHARACTER*(MAX_LEN_FNAM) PETSC_SOLVER_TYPE
104          CHARACTER*(MAX_LEN_FNAM) PETSC_PRECOND_TYPE
105                
106                
107        COMMON /STREAMICE_PARM_C/        COMMON /STREAMICE_PARM_C/
# Line 104  C     -------------------------- CHAR PA Line 114  C     -------------------------- CHAR PA
114       &     STREAMICEbasalTracConfig,       &     STREAMICEbasalTracConfig,
115       &     STREAMICEbasalTracFile,       &     STREAMICEbasalTracFile,
116       &     STREAMICEvelOptimFile,       &     STREAMICEvelOptimFile,
117         &     STREAMICEtopogFile,
118       &     STREAMICEhmaskFile,       &     STREAMICEhmaskFile,
119       &     STREAMICEuFaceBdryFile,       &     STREAMICEuFaceBdryFile,
120       &     STREAMICEvFaceBdryFile,       &     STREAMICEvFaceBdryFile,
121       &     STREAMICEuDirichValsFile,       &     STREAMICEuDirichValsFile,
122       &     STREAMICEvDirichValsFile,       &     STREAMICEvDirichValsFile,
123       &     STREAMICEGlenConstFile,       &     STREAMICEGlenConstFile,
124       &     STREAMICEGlenConstConfig       &     STREAMICEGlenConstConfig,
125         &     STREAMICEcostMaskFile
126    
127          COMMON /PETSC_PARM_C/
128         &     PETSC_SOLVER_TYPE,
129         &     PETSC_PRECOND_TYPE
130            
131  C     -------------------------- LOGICAL PARAMS ---------------------------------------------------  C     -------------------------- LOGICAL PARAMS ---------------------------------------------------
132    
# Line 194  C     Short arrays (e.g. masks) Line 210  C     Short arrays (e.g. masks)
210       &     STREAMICE_vfacemask_bdry,       &     STREAMICE_vfacemask_bdry,
211       &     STREAMICE_float_cond,       &     STREAMICE_float_cond,
212       &     STREAMICE_calve_mask,       &     STREAMICE_calve_mask,
213       &     STREAMICE_ctrl_mask       &     STREAMICE_ctrl_mask,
214         &     STREAMICE_cost_mask
215        _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)
216        _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)
217        _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 228  C     Short arrays (e.g. masks)
228        _RS STREAMICE_calve_mask        _RS STREAMICE_calve_mask
229       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
230        _RS STREAMICE_ctrl_mask        _RS STREAMICE_ctrl_mask
231       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy,Nr)       & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
232          _RS STREAMICE_cost_mask
233         & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
234            
235  C    NOTES :  C    NOTES :
236  C     STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)  C     STREAMICE_ufacemask_bdry, STREAMICE_vfacemask_bdry ARE CONSTANT (FIXED)
# Line 240  C    REAL ARRAYS Line 259  C    REAL ARRAYS
259       &     v_bdry_values_SI,       &     v_bdry_values_SI,
260       &     STREAMICE_dummy_array,       &     STREAMICE_dummy_array,
261       &     C_basal_friction,       &     C_basal_friction,
262       &     A_glen,  !     &     A_glen,
263         &     B_glen,
264       &     BDOT_streamice, ADOT_streamice,  ! mass balances in meters per year       &     BDOT_streamice, ADOT_streamice,  ! mass balances in meters per year
265       &     streamice_sigma_coord, streamice_delsigma,       &     streamice_sigma_coord, streamice_delsigma,
266       &     H_streamice_prev       &     H_streamice_prev
# Line 275  C    REAL ARRAYS Line 295  C    REAL ARRAYS
295        _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)
296        _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)
297        _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)
298        _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)
299          _RL B_glen    (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
300        _RL streamice_sigma_coord (Nr)        _RL streamice_sigma_coord (Nr)
301        _RL streamice_delsigma (Nr)              _RL streamice_delsigma (Nr)      
302    
# Line 325  C Line 346  C
346  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
347  C        but with Hybdrid stress formulation they will become part of  C        but with Hybdrid stress formulation they will become part of
348  C        velocity initial guess, so they are kept  C        velocity initial guess, so they are kept
349    
350    #ifdef ALLOW_PETSC
351          COMMON /STREAMICE_PETSC_DOFS_COMMON/
352         &      streamice_petsc_dofs_u,
353         &      streamice_petsc_dofs_v,
354         &      n_dofs_process
355          _RS streamice_petsc_dofs_u
356         & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
357          _RS streamice_petsc_dofs_v
358         & (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
359          INTEGER n_dofs_process (0:nPx*nPy-1)
360    #endif
361                
362                
363  #endif /* ALLOW_STREAMICE */  #endif /* ALLOW_STREAMICE */

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

  ViewVC Help
Powered by ViewVC 1.1.22