[3] | 1 | !!---------------------------------------------------------------------- |
---|
| 2 | !! *** ldftra_substitute.h90 *** |
---|
| 3 | !!---------------------------------------------------------------------- |
---|
| 4 | !! ** purpose : substitute fsaht. the eddy diffusivity coeff. |
---|
| 5 | !! with a constant or 1D or 2D or 3D array, using CPP macro. |
---|
| 6 | !!---------------------------------------------------------------------- |
---|
[247] | 7 | !!---------------------------------------------------------------------- |
---|
| 8 | !! OPA 9.0 , LOCEAN-IPSL (2005) |
---|
| 9 | !! $Header$ |
---|
| 10 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
[3] | 12 | #if defined key_traldf_c3d |
---|
| 13 | ! 'key_traldf_c3d' : aht: 3D coefficient |
---|
| 14 | # define fsahtt(i,j,k) ahtt(i,j,k) |
---|
| 15 | # define fsahtu(i,j,k) ahtu(i,j,k) |
---|
| 16 | # define fsahtv(i,j,k) ahtv(i,j,k) |
---|
| 17 | # define fsahtw(i,j,k) ahtw(i,j,k) |
---|
| 18 | #elif defined key_traldf_c2d |
---|
| 19 | ! 'key_traldf_c2d' : aht: 2D coefficient |
---|
| 20 | # define fsahtt(i,j,k) ahtt(i,j) |
---|
| 21 | # define fsahtu(i,j,k) ahtu(i,j) |
---|
| 22 | # define fsahtv(i,j,k) ahtv(i,j) |
---|
| 23 | # define fsahtw(i,j,k) ahtw(i,j) |
---|
| 24 | #elif defined key_traldf_c1d |
---|
| 25 | ! 'key_traldf_c1d' : aht: 1D coefficient |
---|
| 26 | # define fsahtt(i,j,k) ahtt(k) |
---|
| 27 | # define fsahtu(i,j,k) ahtu(k) |
---|
| 28 | # define fsahtv(i,j,k) ahtv(k) |
---|
| 29 | # define fsahtw(i,j,k) ahtw(k) |
---|
| 30 | #else |
---|
| 31 | ! Default option : aht: Constant coefficient |
---|
| 32 | # define fsahtt(i,j,k) aht0 |
---|
| 33 | # define fsahtu(i,j,k) aht0 |
---|
| 34 | # define fsahtv(i,j,k) aht0 |
---|
| 35 | # define fsahtw(i,j,k) aht0 |
---|
| 36 | #endif |
---|