1 |
C $Header: /u/gcmpack/MITgcm/verification/front_relax/code_ad/GMREDI_OPTIONS.h,v 1.3 2003/10/24 05:52:05 edhill Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
C CPP options file for GM/Redi package |
5 |
C |
6 |
C Use this file for selecting options within the GM/Redi package |
7 |
C |
8 |
#ifndef GMREDI_OPTIONS_H |
9 |
#define GMREDI_OPTIONS_H |
10 |
#include "PACKAGES_CONFIG.h" |
11 |
|
12 |
#ifndef GMREDI_OPTIONS_H |
13 |
#define GMREDI_OPTIONS_H |
14 |
#include "PACKAGES_CONFIG.h" |
15 |
|
16 |
#include "CPP_OPTIONS.h" |
17 |
|
18 |
#ifdef ALLOW_GMREDI |
19 |
|
20 |
C Designed to simplify the Ajoint code: |
21 |
C exclude the clipping/tapering part of the code that is not used |
22 |
#define GM_EXCLUDE_CLIPPING |
23 |
#define GM_EXCLUDE_AC02_TAP |
24 |
#undef GM_EXCLUDE_TAPERING |
25 |
|
26 |
C This allows to use Visbeck et al formulation to compute K_GM+Redi |
27 |
#undef GM_VISBECK_VARIABLE_K |
28 |
|
29 |
C This allows the leading diagonal (top two rows) to be non-unity |
30 |
C (a feature required when tapering adiabatically). |
31 |
#undef GM_NON_UNITY_DIAGONAL |
32 |
|
33 |
C Allows to use different values of K_GM and K_Redi ; also to |
34 |
C be used with the advective form (Bolus velocity) of GM |
35 |
#undef GM_EXTRA_DIAGONAL |
36 |
|
37 |
C Allows to use the advective form (Bolus velocity) of GM |
38 |
C instead of the Skew-Flux form (=default) |
39 |
#undef GM_BOLUS_ADVEC |
40 |
|
41 |
C Following option avoids specific recomputation in adjoint |
42 |
C routines of gmredi_x/y/rtransport |
43 |
C It's not needed, only for tests, and very memory-consuming |
44 |
#undef GM_AUTODIFF_EXCESSIVE_STORE |
45 |
|
46 |
#endif /* ALLOW_GMREDI */ |
47 |
#endif /* GMREDI_OPTIONS_H */ |