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 7311 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra_substitute.h90 – NEMO

Ignore:
Timestamp:
2016-11-23T07:30:18+01:00 (8 years ago)
Author:
cbricaud
Message:

changes in CRS branch for traldf to allow to run CRS only for output of physics ( no key_top and no use of TOP_SRC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra_substitute.h90

    r7256 r7311  
    3535#      define   fsahtw(i,j,k)   rldf * aht0 
    3636#endif 
     37 
     38   !!---------------------------------------------------------------------- 
     39 
     40#if defined key_crs 
     41#if defined key_traldf_c3d 
     42!   'key_traldf_c3d' :                 aht: 3D coefficient 
     43#       define   fsahtt_crs(i,j,k)   rldf * ahtt_crs(i,j,k) 
     44#       define   fsahtu_crs(i,j,k)   rldf * ahtu_crs(i,j,k) * r_fact_lap_crs(i,j,k) 
     45#       define   fsahtv_crs(i,j,k)   rldf * ahtv_crs(i,j,k) 
     46#       define   fsahtw_crs(i,j,k)   rldf * ahtw_crs(i,j,k) 
     47#elif defined key_traldf_c2d 
     48!   'key_traldf_c2d' :                 aht: 2D coefficient 
     49#       define   fsahtt_crs(i,j,k)   rldf * ahtt_crs(i,j) 
     50#       define   fsahtu_crs(i,j,k)   rldf * ahtu_crs(i,j) * r_fact_lap_crs(i,j,k) 
     51#       define   fsahtv_crs(i,j,k)   rldf * ahtv_crs(i,j) 
     52#       define   fsahtw_crs(i,j,k)   rldf * ahtw_crs(i,j) 
     53#elif defined key_traldf_c1d 
     54!   'key_traldf_c1d' :                aht: 1D coefficient 
     55#       define   fsahtt_crs(i,j,k)   rldf * ahtt_crs(k) 
     56#       define   fsahtu_crs(i,j,k)   rldf * ahtu_crs(k) * r_fact_lap_crs(i,j,k) 
     57#       define   fsahtv_crs(i,j,k)   rldf * ahtv_crs(k) 
     58#       define   fsahtw_crs(i,j,k)   rldf * ahtw_crs(k) 
     59#else 
     60!   Default option :             aht: Constant coefficient 
     61#      define   fsahtt_crs(i,j,k)   rldf * aht0 
     62#      define   fsahtu_crs(i,j,k)   rldf * aht0 * r_fact_lap_crs(i,j,k) 
     63#      define   fsahtv_crs(i,j,k)   rldf * aht0 
     64#      define   fsahtw(_crsi,j,k)   rldf * aht0 
     65#endif 
     66#endif 
Note: See TracChangeset for help on using the changeset viewer.