--- MITgcm/pkg/streamice/streamice_readparms.F 2014/05/27 23:47:42 1.4 +++ MITgcm/pkg/streamice/streamice_readparms.F 2014/06/04 13:08:52 1.5 @@ -1,6 +1,7 @@ -C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/streamice/streamice_readparms.F,v 1.4 2014/05/27 23:47:42 jmc Exp $ +C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/streamice/streamice_readparms.F,v 1.5 2014/06/04 13:08:52 dgoldberg Exp $ C $Name: $ + C this needs changes #include "STREAMICE_OPTIONS.h" @@ -20,7 +21,7 @@ #include "STREAMICE.h" #include "STREAMICE_BDRY.h" #ifdef ALLOW_STREAMICE_FLUX_CONTROL -#include "STREAMICE_CTRL_FLUX.h" +#include "STREAMICE_CTRL_FLUX.h" #endif C !INPUT PARAMETERS: @@ -38,7 +39,7 @@ NAMELIST /STREAMICE_PARM01/ & streamice_density, streamice_density_ocean_avg, & B_glen_isothermal, n_glen, eps_glen_min, eps_u_min, - & C_basal_fric_const, n_basal_friction, + & C_basal_fric_const, n_basal_friction, & streamice_vel_update,streamice_cg_tol,streamice_nonlin_tol, & streamice_nonlin_tol_fp, & streamice_max_cg_iter, streamice_max_nl_iter, @@ -64,6 +65,7 @@ & STREAMICEBdotConfig, & STREAMICEbasalTracFile, & STREAMICEBdotFile, + & STREAMICEBdotTimeDepFile, & STREAMICEvelOptimFile, & STREAMICEtopogFile, & STREAMICEhmaskFile, @@ -72,22 +74,26 @@ & STREAMICEuFaceBdryFile, & STREAMICEvFaceBdryFile, & STREAMICEuDirichValsFile, - & STREAMICEvDirichValsFile, - & STREAMICEuMassFluxFile, - & STREAMICEvMassFluxFile, + & STREAMICEvDirichValsFile, + & STREAMICEuMassFluxFile, + & STREAMICEvMassFluxFile, & STREAMICEuNormalStressFile, & STREAMICEvNormalStressFile, & STREAMICEuShearStressFile, & STREAMICEvShearStressFile, + & STREAMICEuNormalTimeDepFile, + & STREAMICEvNormalTimeDepFile, + & STREAMICEuShearTimeDepFile, + & STREAMICEvShearTimeDepFile, & STREAMICEGlenConstFile, STREAMICEGlenConstConfig, & STREAMICE_ppm_driving_stress, & STREAMICE_h_ctrl_const_surf, & streamice_wgt_drift,streamice_wgt_surf,streamice_wgt_vel, - & streamice_wgt_avthick, streamice_wgt_tikh, + & streamice_wgt_avthick, streamice_wgt_tikh, & streamice_addl_backstress, & streamice_smooth_gl_width, & streamice_adot_uniform, - & STREAMICE_ADV_SCHEME + & STREAMICE_ADV_SCHEME, streamice_forcing_period #ifdef ALLOW_STREAMICE_2DTRACER NAMELIST /STREAMICE_PARMTRACER/ @@ -108,6 +114,7 @@ & streamice_ctrl_flux_scaleVel #endif + NAMELIST /STREAMICE_PARM02/ & shelf_max_draft, & shelf_min_draft, @@ -141,23 +148,11 @@ & flux_bdry_val_WEST, flux_bdry_val_EAST, & STREAMICE_NS_periodic, STREAMICE_EW_periodic -C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| - - IF ( .NOT.useStreamIce ) THEN -C- pkg STREAMICE is not used - _BEGIN_MASTER(myThid) -C- Track pkg activation status: -C print a (weak) warning if data.streamice is found - CALL PACKAGES_UNUSED_MSG( 'useStreamIce', ' ', ' ' ) - _END_MASTER(myThid) - RETURN - ENDIF - _BEGIN_MASTER(myThid) C-- Default values for STREAMICE - streamice_density = 917. + streamice_density = 917. streamice_density_ocean_avg = 1024. B_glen_isothermal = 9.461e-18 ! Pa (-1/3) a n_glen = 3. @@ -180,12 +175,13 @@ streamice_ky_b_init = 1. streamice_wgt_drift = 0. streamice_wgt_tikh = 0. - streamice_wgt_surf = 0. - streamice_wgt_vel = 0. + streamice_wgt_surf = 0. + streamice_wgt_vel = 0. streamice_wgt_avthick = 0. streamice_addl_backstress = 0.0 streamice_smooth_gl_width = 0.0 streamice_adot_uniform = 0.0 + streamice_forcing_period = 0 STREAMICEthickInit = 'FILE' STREAMICEthickFile = ' ' @@ -195,6 +191,7 @@ STREAMICEbasalTracConfig = 'UNIFORM' STREAMICEBdotConfig = '' STREAMICEBdotFile = '' + STREAMICEBdotTimeDepFile = ' ' STREAMICEbasalTracFile = ' ' STREAMICEvelOptimFile = '' STREAMICEtopogFile = '' @@ -205,6 +202,10 @@ STREAMICEvNormalStressFile = '' STREAMICEuShearStressFile = '' STREAMICEvShearStressFile = '' + STREAMICEuNormalTimeDepFile = ' ' + STREAMICEvNormalTimeDepFile = ' ' + STREAMICEuShearTimeDepFile = ' ' + STREAMICEvShearTimeDepFile = ' ' #ifdef ALLOW_STREAMICE_2DTRACER STREAMICETrac2DBCxFile = '' @@ -240,7 +241,7 @@ STREAMICEison = .TRUE. STREAMICE_tave_mdsio = .TRUE. STREAMICE_dump_mdsio = .TRUE. - STREAMICE_dump_mnc = .FALSE. + STREAMICE_dump_mnc = .FALSE. STREAMICE_tave_mnc = .FALSE. STREAMICE_GL_regularize = .FALSE. STREAMICE_move_front = .FALSE. @@ -295,7 +296,7 @@ flux_bdry_val_EAST = 0. STREAMICE_NS_periodic = .FALSE. - STREAMICE_EW_periodic = .FALSE. + STREAMICE_EW_periodic = .FALSE. WRITE(msgBuf,'(A)') 'STREAMICE_READPARMS: opening data.streamice' CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, @@ -336,6 +337,7 @@ & SQUEEZE_RIGHT , 1) #endif + READ(UNIT=iUnit,NML=STREAMICE_PARM03) WRITE(msgBuf,'(A)') & 'STREAMICE_READPARMS: read third param block' @@ -343,6 +345,7 @@ & SQUEEZE_RIGHT , 1) CLOSE(iUnit) + #ifdef ALLOW_STREAMICE_FLUX_CONTROL CALL OPEN_COPY_DATA_FILE( @@ -350,6 +353,7 @@ O iUnit, I myThid ) + READ(UNIT=iUnit,NML=STREAMICE_PARMFLUXCTRL) WRITE(msgBuf,'(A)') & 'STREAMICE_READPARMS: read flux_ctrl param block' @@ -358,10 +362,12 @@ CLOSE(iUnit) #endif + + streamice_nstep_velocity = NINT (streamice_vel_update / deltaT) C- Set Output type flags : - + #ifdef ALLOW_MNC IF (useMNC) THEN IF ( .NOT.outputTypesInclusive