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 3497 for branches/2012/dev_r3452_NOCL02_Smagorinsky/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra.F90 – NEMO

Ignore:
Timestamp:
2012-10-12T18:14:36+02:00 (12 years ago)
Author:
hliu
Message:

Upload code files for Smagorinsky viscosity/diffusivity work, documentation to be converted to latex format and uploaded soon. See the ticket (coming in minutes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3452_NOCL02_Smagorinsky/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra.F90

    r3294 r3497  
    6666      NAMELIST/namtra_ldf/ ln_traldf_lap  , ln_traldf_bilap,                  & 
    6767         &                 ln_traldf_level, ln_traldf_hor  , ln_traldf_iso,   & 
    68          &                 ln_traldf_grif , ln_traldf_gdia,                   & 
    69          &                 ln_triad_iso   , ln_botmix_grif,                   & 
     68         &                 ln_traldf_grif , ln_traldf_gdia ,                  & 
     69         &                 ln_triad_iso   , ln_botmix_grif ,                  & 
    7070         &                 rn_aht_0       , rn_ahtb_0      , rn_aeiv_0,       & 
    71          &                 rn_slpmax 
     71         &                 rn_slpmax      , rn_chsmag      ,    rn_smsh,      & 
     72         &                 rn_aht_m 
    7273      !!---------------------------------------------------------------------- 
    7374 
     
    153154      IF(lwp)WRITE(numout,*) '      constant eddy diffusivity coef.   ahtu = ahtv = ahtw = aht0 = ', aht0 
    154155      IF( lk_traldf_eiv ) THEN 
    155          IF(lwp)WRITE(numout,*) 
    156156         IF(lwp)WRITE(numout,*) '      constant eddy induced velocity coef.   aeiu = aeiv = aeiw = aeiv0 = ', aeiv0 
     157       
    157158      ENDIF 
    158159#endif 
     160 
     161#if defined key_traldf_smag && ! defined key_traldf_c3d 
     162        CALL ctl_stop( 'key_traldf_smag can only be used with key_traldf_c3d' ) 
     163#endif 
     164#if defined key_traldf_smag 
     165        IF(lwp) WRITE(numout,*)' SMAGORINSKY DIFFUSION' 
     166        IF(lwp .AND. rn_smsh < 1)  WRITE(numout,*)' only  shear is used ' 
     167        IF(lwp.and.ln_traldf_bilap) CALL ctl_stop(' SMAGORINSKY + BILAPLACIAN - UNSTABLE OR NON_CONSERVATIVE' ) 
     168#endif 
     169 
    159170      ! 
    160171   END SUBROUTINE ldf_tra_init 
Note: See TracChangeset for help on using the changeset viewer.