- Timestamp:
- 2017-12-26T17:32:56+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/iceforcing.F90
r9124 r9169 52 52 !! utau_ice, vtau_ice : surface ice stress (U- & V-points) [N/m2] 53 53 !!------------------------------------------------------------------- 54 INTEGER, INTENT(in) :: kt ! ocean time step 55 INTEGER, INTENT(in) :: ksbc ! type of sbc flux ( 1 = user defined formulation, 56 ! 3 = bulk formulation, 57 ! 4 = Pure Coupled formulation) 58 REAL(wp), DIMENSION(jpi,jpj), INTENT(out) :: utau_ice, vtau_ice 54 INTEGER , INTENT(in ) :: kt ! ocean time step 55 INTEGER , INTENT(in ) :: ksbc ! type of sbc flux 56 REAL(wp), DIMENSION(jpi,jpj), INTENT( out) :: utau_ice, vtau_ice ! air-ice stress [N/m2] 59 57 !! 60 58 INTEGER :: ji, jj ! dummy loop index 61 59 REAL(wp), DIMENSION(jpi,jpj) :: zutau_ice, zvtau_ice 62 60 !!------------------------------------------------------------------- 63 61 ! 64 62 IF( ln_timing ) CALL timing_start('ice_forcing') 65 63 ! 66 64 IF( kt == nit000 .AND. lwp ) THEN 67 65 WRITE(numout,*) … … 69 67 WRITE(numout,*)'~~~~~~~~~~~~~~~' 70 68 ENDIF 71 69 ! 72 70 SELECT CASE( ksbc ) 73 71 CASE( jp_usr ) ; CALL usrdef_sbc_ice_tau( kt ) ! user defined formulation … … 75 73 CASE( jp_purecpl ) ; CALL sbc_cpl_ice_tau( utau_ice , vtau_ice ) ! Coupled formulation 76 74 END SELECT 77 75 ! 78 76 IF( ln_mixcpl) THEN ! Case of a mixed Bulk/Coupled formulation 79 77 CALL sbc_cpl_ice_tau( zutau_ice , zvtau_ice ) … … 86 84 CALL lbc_lnk_multi( utau_ice, 'U', -1., vtau_ice, 'V', -1. ) 87 85 ENDIF 88 86 ! 89 87 IF( ln_timing ) CALL timing_stop('ice_forcing') 90 88 ! … … 255 253 END SUBROUTINE ice_flx_dist 256 254 255 257 256 SUBROUTINE ice_forcing_init 258 257 !!------------------------------------------------------------------- 259 258 !! *** ROUTINE ice_forcing_init *** 260 259 !! 261 !! ** Purpose : Physical constants and parameters linked to the ice 262 !! dynamics 263 !! 264 !! ** Method : Read the namforcing namelist and check the ice-dynamic 265 !! parameter values called at the first timestep (nit000) 260 !! ** Purpose : Physical constants and parameters linked to the ice dynamics 261 !! 262 !! ** Method : Read the namforcing namelist and check the ice-dynamic 263 !! parameter values called at the first timestep (nit000) 266 264 !! 267 265 !! ** input : Namelist namforcing 268 266 !!------------------------------------------------------------------- 269 INTEGER :: ios, ioptio ! Local integer output status for namelist read267 INTEGER :: ios, ioptio ! Local integer 270 268 !! 271 269 NAMELIST/namforcing/ rn_cio, rn_blow_s, nn_flxdist, nice_jules … … 274 272 REWIND( numnam_ice_ref ) ! Namelist namforcing in reference namelist : Ice dynamics 275 273 READ ( numnam_ice_ref, namforcing, IOSTAT = ios, ERR = 901) 276 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namforcing in reference namelist', lwp ) 277 ! 274 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namforcing in reference namelist', lwp ) 278 275 REWIND( numnam_ice_cfg ) ! Namelist namforcing in configuration namelist : Ice dynamics 279 276 READ ( numnam_ice_cfg, namforcing, IOSTAT = ios, ERR = 902 ) 280 902 IF( ios /= 0 )CALL ctl_nam ( ios , 'namforcing in configuration namelist', lwp )281 IF(lwm) WRITE 277 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namforcing in configuration namelist', lwp ) 278 IF(lwm) WRITE( numoni, namforcing ) 282 279 ! 283 280 IF(lwp) THEN ! control print 284 281 WRITE(numout,*) 285 282 WRITE(numout,*) 'ice_forcing_init: ice parameters for ice dynamics ' 286 WRITE(numout,*) '~~~~~~~~~~~~~~~ '283 WRITE(numout,*) '~~~~~~~~~~~~~~~~' 287 284 WRITE(numout,*) ' Namelist namforcing:' 288 285 WRITE(numout,*) ' drag coefficient for oceanic stress rn_cio = ', rn_cio
Note: See TracChangeset
for help on using the changeset viewer.