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 9490 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/dtatsd.F90 – NEMO

Ignore:
Timestamp:
2018-04-23T10:44:07+02:00 (6 years ago)
Author:
gm
Message:

#2075 - dev_merge_2017: scale-aware setting of lateral viscous and diffusive coefficient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/dtatsd.F90

    r9168 r9490  
    99   !!   NEMO     1.0  ! 2002-06  (G. Madec)  F90: Free form and module  
    1010   !!            3.3  ! 2010-10  (C. Bricaud, S. Masson)  use of fldread 
    11    !!            3.4  ! 2010-11  (G. Madec, C. Ethe) Merge of dtatem and dtasal + suppression of CPP keys 
     11   !!            3.4  ! 2010-11  (G. Madec, C. Ethe) Merge of dtatem and dtasal + remove CPP keys 
    1212   !!---------------------------------------------------------------------- 
    1313 
     
    2929   PUBLIC   dta_tsd        ! called by istate.F90 and tradmp.90 
    3030 
    31    LOGICAL , PUBLIC ::   ln_tsd_init      !: T & S data flag 
    32    LOGICAL , PUBLIC ::   ln_tsd_tradmp    !: internal damping toward input data flag 
     31   !                                  !!* namtsd  namelist : Temperature & Salinity Data * 
     32   LOGICAL , PUBLIC ::   ln_tsd_init   !: T & S data flag 
     33   LOGICAL , PUBLIC ::   ln_tsd_dmp    !: internal damping toward input data flag 
    3334 
    3435   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_tsd   ! structure of input SST (file informations, fields read) 
     
    5859      TYPE(FLD_N)                   ::   sn_tem, sn_sal 
    5960      !! 
    60       NAMELIST/namtsd/   ln_tsd_init, ln_tsd_tradmp, cn_dir, sn_tem, sn_sal 
     61      NAMELIST/namtsd/   ln_tsd_init, ln_tsd_dmp, cn_dir, sn_tem, sn_sal 
    6162      !!---------------------------------------------------------------------- 
    6263      ! 
     
    7273      IF(lwm) WRITE ( numond, namtsd ) 
    7374 
    74       IF( PRESENT( ld_tradmp ) )   ln_tsd_tradmp = .TRUE.     ! forces the initialization when tradmp is used 
     75      IF( PRESENT( ld_tradmp ) )   ln_tsd_dmp = .TRUE.     ! forces the initialization when tradmp is used 
    7576       
    7677      IF(lwp) THEN                  ! control print 
     
    7980         WRITE(numout,*) '~~~~~~~~~~~~ ' 
    8081         WRITE(numout,*) '   Namelist namtsd' 
    81          WRITE(numout,*) '      Initialisation of ocean T & S with T &S input data   ln_tsd_init   = ', ln_tsd_init 
    82          WRITE(numout,*) '      damping of ocean T & S toward T &S input data        ln_tsd_tradmp = ', ln_tsd_tradmp 
     82         WRITE(numout,*) '      Initialisation of ocean T & S with T &S input data   ln_tsd_init = ', ln_tsd_init 
     83         WRITE(numout,*) '      damping of ocean T & S toward T &S input data        ln_tsd_dmp  = ', ln_tsd_dmp 
    8384         WRITE(numout,*) 
    84          IF( .NOT.ln_tsd_init .AND. .NOT.ln_tsd_tradmp ) THEN 
     85         IF( .NOT.ln_tsd_init .AND. .NOT.ln_tsd_dmp ) THEN 
    8586            WRITE(numout,*) 
    86             WRITE(numout,*) '   T & S data not used' 
     87            WRITE(numout,*) '   ===>>   T & S data not used' 
    8788         ENDIF 
    8889      ENDIF 
     
    9596      ! 
    9697      !                             ! allocate the arrays (if necessary) 
    97       IF(  ln_tsd_init .OR. ln_tsd_tradmp ) THEN 
     98      IF( ln_tsd_init .OR. ln_tsd_dmp ) THEN 
    9899         ! 
    99100         ALLOCATE( sf_tsd(jpts), STAT=ierr0 ) 
     
    129130      !!              - 'key_orca_lev10' interpolates on 10 times more levels 
    130131      !!              - s- or mixed z-s coordinate: vertical interpolation on model mesh 
    131       !!              - ln_tsd_tradmp=F: deallocates the T-S data structure 
     132      !!              - ln_tsd_dmp=F: deallocates the T-S data structure 
    132133      !!                as T-S data are no are used 
    133134      !! 
     
    149150      ! 
    150151      !                                   !==   ORCA_R2 configuration and T & S damping   ==!  
    151       IF( cn_cfg == "orca" .AND. nn_cfg == 2 .AND. ln_tsd_tradmp ) THEN    ! some hand made alterations 
     152      IF( cn_cfg == "orca" .AND. nn_cfg == 2 .AND. ln_tsd_dmp ) THEN    ! some hand made alterations 
    152153         ! 
    153154         ij0 = 101   ;   ij1 = 109                       ! Reduced T & S in the Alboran Sea 
     
    238239      ENDIF 
    239240      ! 
    240       IF( .NOT.ln_tsd_tradmp ) THEN                   !==   deallocate T & S structure   ==!  
     241      IF( .NOT.ln_tsd_dmp ) THEN                   !==   deallocate T & S structure   ==!  
    241242         !                                              (data used only for initialisation) 
    242243         IF(lwp) WRITE(numout,*) 'dta_tsd: deallocte T & S arrays as they are only use to initialize the run' 
Note: See TracChangeset for help on using the changeset viewer.