- Timestamp:
- 2017-12-14T11:29:10+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/SBC/sbcwave.F90
r9029 r9033 45 45 LOGICAL, PUBLIC :: cpl_wfreq = .FALSE. 46 46 LOGICAL, PUBLIC :: cpl_wnum = .FALSE. 47 LOGICAL, PUBLIC :: cpl_tau oc = .FALSE.47 LOGICAL, PUBLIC :: cpl_tauwoc = .FALSE. 48 48 LOGICAL, PUBLIC :: cpl_tauw = .FALSE. 49 49 LOGICAL, PUBLIC :: cpl_wdrag = .FALSE. … … 59 59 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_sd ! structure of input fields (file informations, fields read) Stokes Drift 60 60 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_wn ! structure of input fields (file informations, fields read) wave number for Qiao 61 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_tau oc ! structure of input fields (file informations, fields read) normalized wave stress into the ocean61 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_tauwoc ! structure of input fields (file informations, fields read) normalized wave stress into the ocean 62 62 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_tauw ! structure of input fields (file informations, fields read) ocean stress components from wave model 63 63 … … 255 255 INTEGER :: jj, ji ! dummy loop argument 256 256 ! 257 IF( ln_tau oc ) THEN257 IF( ln_tauwoc ) THEN 258 258 utau(:,:) = utau(:,:)*tauoc_wave(:,:) 259 259 vtau(:,:) = vtau(:,:)*tauoc_wave(:,:) … … 300 300 ENDIF 301 301 302 IF( ln_tau oc .AND. .NOT. cpl_tauoc ) THEN !== Wave induced stress ==!303 CALL fld_read( kt, nn_fsbc, sf_tau oc ) ! read wave norm stress from external forcing304 tauoc_wave(:,:) = sf_tau oc(1)%fnow(:,:,1)302 IF( ln_tauwoc .AND. .NOT. cpl_tauwoc ) THEN !== Wave induced stress ==! 303 CALL fld_read( kt, nn_fsbc, sf_tauwoc ) ! read wave norm stress from external forcing 304 tauoc_wave(:,:) = sf_tauwoc(1)%fnow(:,:,1) 305 305 ENDIF 306 306 … … 362 362 TYPE(FLD_N) :: sn_cdg, sn_usd, sn_vsd, & 363 363 & sn_hsw, sn_wmp, sn_wfr, sn_wnum, & 364 & sn_tau oc, sn_tauwx, sn_tauwy ! informations about the fields to be read364 & sn_tauwoc, sn_tauwx, sn_tauwy ! informations about the fields to be read 365 365 ! 366 366 NAMELIST/namsbc_wave/ sn_cdg, cn_dir, sn_usd, sn_vsd, sn_hsw, sn_wmp, sn_wfr, & 367 sn_wnum, sn_tau oc, sn_tauwx, sn_tauwy367 sn_wnum, sn_tauwoc, sn_tauwx, sn_tauwy 368 368 !!--------------------------------------------------------------------- 369 369 ! … … 389 389 ENDIF 390 390 391 IF( ln_tau oc ) THEN392 IF( .NOT. cpl_tau oc ) THEN393 ALLOCATE( sf_tau oc(1), STAT=ierror ) !* allocate and fill sf_wave with sn_tauoc391 IF( ln_tauwoc ) THEN 392 IF( .NOT. cpl_tauwoc ) THEN 393 ALLOCATE( sf_tauwoc(1), STAT=ierror ) !* allocate and fill sf_wave with sn_tauwoc 394 394 IF( ierror > 0 ) CALL ctl_stop( 'STOP', 'sbc_wave_init: unable to allocate sf_wave structure' ) 395 395 ! 396 ALLOCATE( sf_tau oc(1)%fnow(jpi,jpj,1) )397 IF( sn_tau oc%ln_tint ) ALLOCATE( sf_tauoc(1)%fdta(jpi,jpj,1,2) )398 CALL fld_fill( sf_tau oc, (/ sn_tauoc /), cn_dir, 'sbc_wave_init', 'Wave module', 'namsbc_wave' )396 ALLOCATE( sf_tauwoc(1)%fnow(jpi,jpj,1) ) 397 IF( sn_tauwoc%ln_tint ) ALLOCATE( sf_tauwoc(1)%fdta(jpi,jpj,1,2) ) 398 CALL fld_fill( sf_tauwoc, (/ sn_tauwoc /), cn_dir, 'sbc_wave_init', 'Wave module', 'namsbc_wave' ) 399 399 ENDIF 400 400 ALLOCATE( tauoc_wave(jpi,jpj) )
Note: See TracChangeset
for help on using the changeset viewer.