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 9033 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/SBC/sbcwave.F90 – NEMO

Ignore:
Timestamp:
2017-12-14T11:29:10+01:00 (6 years ago)
Author:
timgraham
Message:

Commit final files from merge of NEMOGCM and some fixes for waves (taooc renamed tauwoc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/SBC/sbcwave.F90

    r9029 r9033  
    4545   LOGICAL, PUBLIC ::   cpl_wfreq  = .FALSE. 
    4646   LOGICAL, PUBLIC ::   cpl_wnum   = .FALSE. 
    47    LOGICAL, PUBLIC ::   cpl_tauoc  = .FALSE. 
     47   LOGICAL, PUBLIC ::   cpl_tauwoc  = .FALSE. 
    4848   LOGICAL, PUBLIC ::   cpl_tauw   = .FALSE. 
    4949   LOGICAL, PUBLIC ::   cpl_wdrag  = .FALSE. 
     
    5959   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_sd      ! structure of input fields (file informations, fields read) Stokes Drift 
    6060   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_wn      ! structure of input fields (file informations, fields read) wave number for Qiao 
    61    TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_tauoc   ! structure of input fields (file informations, fields read) normalized wave stress into the ocean 
     61   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_tauwoc   ! structure of input fields (file informations, fields read) normalized wave stress into the ocean 
    6262   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_tauw    ! structure of input fields (file informations, fields read) ocean stress components from wave model 
    6363 
     
    255255      INTEGER  ::   jj, ji   ! dummy loop argument 
    256256      ! 
    257       IF( ln_tauoc ) THEN 
     257      IF( ln_tauwoc ) THEN 
    258258         utau(:,:) = utau(:,:)*tauoc_wave(:,:) 
    259259         vtau(:,:) = vtau(:,:)*tauoc_wave(:,:) 
     
    300300      ENDIF 
    301301 
    302       IF( ln_tauoc .AND. .NOT. cpl_tauoc ) THEN    !==  Wave induced stress  ==! 
    303          CALL fld_read( kt, nn_fsbc, sf_tauoc )          ! read wave norm stress from external forcing 
    304          tauoc_wave(:,:) = sf_tauoc(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) 
    305305      ENDIF 
    306306 
     
    362362      TYPE(FLD_N)            ::  sn_cdg, sn_usd, sn_vsd,  & 
    363363                             &   sn_hsw, sn_wmp, sn_wfr, sn_wnum, & 
    364                              &   sn_tauoc, sn_tauwx, sn_tauwy      ! informations about the fields to be read 
     364                             &   sn_tauwoc, sn_tauwx, sn_tauwy      ! informations about the fields to be read 
    365365      ! 
    366366      NAMELIST/namsbc_wave/  sn_cdg, cn_dir, sn_usd, sn_vsd, sn_hsw, sn_wmp, sn_wfr, & 
    367                              sn_wnum, sn_tauoc, sn_tauwx, sn_tauwy 
     367                             sn_wnum, sn_tauwoc, sn_tauwx, sn_tauwy 
    368368      !!--------------------------------------------------------------------- 
    369369      ! 
     
    389389      ENDIF 
    390390 
    391       IF( ln_tauoc ) THEN 
    392          IF( .NOT. cpl_tauoc ) THEN 
    393             ALLOCATE( sf_tauoc(1), STAT=ierror )           !* allocate and fill sf_wave with sn_tauoc 
     391      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 
    394394            IF( ierror > 0 )   CALL ctl_stop( 'STOP', 'sbc_wave_init: unable to allocate sf_wave structure' ) 
    395395            ! 
    396                                     ALLOCATE( sf_tauoc(1)%fnow(jpi,jpj,1)   ) 
    397             IF( sn_tauoc%ln_tint )  ALLOCATE( sf_tauoc(1)%fdta(jpi,jpj,1,2) ) 
    398             CALL fld_fill( sf_tauoc, (/ 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' ) 
    399399         ENDIF 
    400400         ALLOCATE( tauoc_wave(jpi,jpj) ) 
Note: See TracChangeset for help on using the changeset viewer.