New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 5457 for branches/2014/dev_r4822_INGV_WAVE/NEMOGCM/NEMO/OPA_SRC/SBC/sbcwave.F90 – NEMO

Ignore:
Timestamp:
2015-06-22T12:36:03+02:00 (9 years ago)
Author:
emanuelaclementi
Message:

#1544: Wave-current developments: Tracer advection & surface stress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4822_INGV_WAVE/NEMOGCM/NEMO/OPA_SRC/SBC/sbcwave.F90

    r4962 r5457  
    3535   TYPE(FLD), ALLOCATABLE, DIMENSION(:)  :: sf_sd    ! structure of input fields (file informations, fields read) Stokes Drift 
    3636   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 
    3738   REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:)       :: cdn_wave  
    3839   REAL(wp),ALLOCATABLE,DIMENSION (:,:)              :: usd2d,vsd2d 
     
    4041   REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:)       :: usd2dt,vsd2dt,tsd2d 
    4142   REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:,:)     :: usd3d,vsd3d,wsd3d  
     43   REAL(wp),PUBLIC,ALLOCATABLE,DIMENSION (:,:)       :: tauoc_wave 
    4244   LOGICAL, PUBLIC :: ln_stcor = .FALSE. 
    4345 
     
    8486      CHARACTER(len=100)     ::  cn_dir                          ! Root directory for location of drag coefficient files 
    8587      TYPE(FLD_N)            ::  sn_cdg, sn_usd, sn_vsd,  & 
    86                              &   sn_swh, sn_wmp, sn_wnum         ! informations about the fields to be read 
    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 
    8991      !!--------------------------------------------------------------------- 
    9092 
     
    115117            cdn_wave(:,:) = 0.0 
    116118        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! 
    118131         IF ( ln_sdw ) THEN 
    119132            slf_i(jp_usd) = sn_usd ; slf_i(jp_vsd) = sn_vsd; 
     
    152165         cdn_wave(:,:) = sf_cd(1)%fnow(:,:,1) 
    153166      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! 
    154173      IF ( ln_sdw )  THEN 
    155174          CALL fld_read( kt, nn_fsbc, sf_sd )      !* read wave parameters from external forcing 
     
    214233         CALL lbc_lnk( vsd3d(:,:,:), 'V', -1. ) 
    215234 
    216  
    217235          CALL wrk_alloc( jpi,jpj,jpk,udummy,vdummy,hdivdummy,rotdummy) 
    218236      !-------------------------------------------------------------------           
Note: See TracChangeset for help on using the changeset viewer.