- Timestamp:
- 2015-06-22T12:36:03+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4822_INGV_WAVE/NEMOGCM/NEMO/OPA_SRC/SBC/sbcwave.F90
r4962 r5457 35 35 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_sd ! structure of input fields (file informations, fields read) Stokes Drift 36 36 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_wn ! structure of input fields (file informations, fields read) wave number for Qiao 37 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_tauoc ! structure of input fields (file informations, fields read) normalized wave stress into the ocean 37 38 REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:) :: cdn_wave 38 39 REAL(wp),ALLOCATABLE,DIMENSION (:,:) :: usd2d,vsd2d … … 40 41 REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:) :: usd2dt,vsd2dt,tsd2d 41 42 REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:,:) :: usd3d,vsd3d,wsd3d 43 REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:) :: tauoc_wave 42 44 LOGICAL, PUBLIC :: ln_stcor = .FALSE. 43 45 … … 84 86 CHARACTER(len=100) :: cn_dir ! Root directory for location of drag coefficient files 85 87 TYPE(FLD_N) :: sn_cdg, sn_usd, sn_vsd, & 86 & sn_swh, sn_wmp, sn_wnum 87 !!--------------------------------------------------------------------- 88 NAMELIST/namsbc_wave/ sn_cdg, cn_dir, sn_usd, sn_vsd, sn_swh, sn_wmp, sn_wnum, ln_stcor 88 & sn_swh, sn_wmp, sn_wnum, sn_tauoc ! informations about the fields to be read 89 !!--------------------------------------------------------------------- 90 NAMELIST/namsbc_wave/ sn_cdg, cn_dir, sn_usd, sn_vsd, sn_swh, sn_wmp, sn_wnum, ln_stcor, sn_tauoc 89 91 !!--------------------------------------------------------------------- 90 92 … … 115 117 cdn_wave(:,:) = 0.0 116 118 ENDIF 117 119 ! 120 IF ( ln_tauoc ) THEN 121 ALLOCATE( sf_tauoc(1), STAT=ierror ) !* allocate and fill sf_wave with sn_tauoc 122 IF( ierror > 0 ) CALL ctl_stop( 'STOP', 'sbc_wave: unable to allocate sf_wave structure' ) 123 ! 124 ALLOCATE( sf_tauoc(1)%fnow(jpi,jpj,1) ) 125 IF( sn_cdg%ln_tint ) ALLOCATE( sf_tauoc(1)%fdta(jpi,jpj,1,2) ) 126 CALL fld_fill( sf_tauoc, (/ sn_tauoc /), cn_dir, 'sbc_wave', 'Wave module', 'namsbc_wave' ) 127 ALLOCATE( tauoc_wave(jpi,jpj) ) 128 tauoc_wave(:,:) = 0.0 129 ENDIF 130 ! 118 131 IF ( ln_sdw ) THEN 119 132 slf_i(jp_usd) = sn_usd ; slf_i(jp_vsd) = sn_vsd; … … 152 165 cdn_wave(:,:) = sf_cd(1)%fnow(:,:,1) 153 166 ENDIF 167 ! 168 IF ( ln_tauoc ) THEN 169 CALL fld_read( kt, nn_fsbc, sf_tauoc ) !* read wave norm stress from external forcing 170 tauoc_wave(:,:) = sf_tauoc(1)%fnow(:,:,1) 171 ENDIF 172 ! 154 173 IF ( ln_sdw ) THEN 155 174 CALL fld_read( kt, nn_fsbc, sf_sd ) !* read wave parameters from external forcing … … 214 233 CALL lbc_lnk( vsd3d(:,:,:), 'V', -1. ) 215 234 216 217 235 CALL wrk_alloc( jpi,jpj,jpk,udummy,vdummy,hdivdummy,rotdummy) 218 236 !-------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.