source: branches/DEV_r1784_mid_year_merge_2010/NEMO/OPA_SRC/LDF/ldfdyn_substitute.h90 @ 1954

Last change on this file since 1954 was 1954, checked in by acc, 10 years ago

ticket #684 step 4: Add in changes between the head of the dev_r1821_mixed_ldfdyn branch and the trunk@1821

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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   !!----------------------------------------------------------------------
8   !!  OPA 9.0 , LOCEAN-IPSL (2005)
9   !! $Id$
10   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
11   !!----------------------------------------------------------------------
12   !!
13   !! fsahmt, fsahmf - used for laplaian operator only
14   !! fsahmu, fsahmv - used for bilaplacian operator only
15   !!
16#if defined key_dynldf_c3d
17!   ' key_dynldf_c3d' :                  3D coefficient
18#    define   fsahmt(i,j,k)    ahm1(i,j,k)
19#    define   fsahmf(i,j,k)    ahm2(i,j,k)
20#    define   fsahmu(i,j,k)    ahm3(i,j,k)
21#    define   fsahmv(i,j,k)    ahm4(i,j,k)
22#elif defined key_dynldf_c2d
23!   ' key_dynldf_c2d' :                 2D coefficient
24#  define   fsahmt(i,j,k)    ahm1(i,j)
25#  define   fsahmf(i,j,k)    ahm2(i,j)
26#  define   fsahmu(i,j,k)    ahm3(i,j)
27#  define   fsahmv(i,j,k)    ahm4(i,j)
28#elif defined key_dynldf_c1d
29!   'key_dynldf_c1d' :                  1D coefficient
30#  define   fsahmt(i,j,k)    ahm1(k)
31#  define   fsahmf(i,j,k)    ahm1(k)
32#  define   fsahmu(i,j,k)    ahm2(k)
33#  define   fsahmv(i,j,k)    ahm2(k)
34#else
35!   default option :               Constant coefficient
36#  define   fsahmt(i,j,k)   ahm0
37#  define   fsahmf(i,j,k)   ahm0
38#  define   fsahmu(i,j,k)   ahm0_blp
39#  define   fsahmv(i,j,k)   ahm0_blp
40#endif
Note: See TracBrowser for help on using the repository browser.