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.
ldfdyn_substitute.h90 in trunk/NEMO/OPA_SRC/LDF – NEMO

source: trunk/NEMO/OPA_SRC/LDF/ldfdyn_substitute.h90 @ 175

Last change on this file since 175 was 175, checked in by opalod, 19 years ago

CT : BUGFIX120 : correct an error subsitution for bi-laplacian viscosity coefficients when using at least the key_dynldf_c3d cpp key

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1   !!----------------------------------------------------------------------
2   !!                    ***  ldfdyn_substitute.h90  ***
3   !!----------------------------------------------------------------------
4   !! ** purpose :   substitute fsahm., the lateral eddy viscosity coeff.
5   !!      with a constant, or 1D, or 2D or 3D array, using CPP macro.
6   !!----------------------------------------------------------------------
7#if defined key_dynldf_c3d
8!   ' key_dynldf_c3d' :                  3D coefficient
9#    define   fsahmt(i,j,k)    ahm1(i,j,k)
10#    define   fsahmf(i,j,k)    ahm2(i,j,k)
11#    define   fsahmu(i,j,k)    ahm3(i,j,k)
12#    define   fsahmv(i,j,k)    ahm4(i,j,k)
13#elif defined key_dynldf_c2d
14!   ' key_dynldf_c2d' :                 2D coefficient
15#  define   fsahmt(i,j,k)    ahm1(i,j)
16#  define   fsahmf(i,j,k)    ahm2(i,j)
17#  define   fsahmu(i,j,k)    ahm3(i,j)
18#  define   fsahmv(i,j,k)    ahm4(i,j)
19#elif defined key_dynldf_c1d
20!   'key_dynldf_c1d' :                  1D coefficient
21#  define   fsahmt(i,j,k)    ahm1(k)
22#  define   fsahmf(i,j,k)    ahm1(k)
23#  define   fsahmu(i,j,k)    ahm1(k)
24#  define   fsahmv(i,j,k)    ahm1(k)
25#else
26!   default option :               Constant coefficient
27#  define   fsahmt(i,j,k)   ahm0
28#  define   fsahmf(i,j,k)   ahm0
29#  define   fsahmu(i,j,k)   ahm0
30#  define   fsahmv(i,j,k)   ahm0
31#endif
Note: See TracBrowser for help on using the repository browser.