1 |
jmc |
1.4 |
C $Header: /u/gcmpack/MITgcm/pkg/shap_filt/SHAP_FILT_OPTIONS.h,v 1.6 2005/02/12 23:05:43 jmc Exp $ |
2 |
cnh |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
jmc |
1.4 |
C CPP options file for pkg SHAP_FILT |
5 |
cnh |
1.1 |
|
6 |
jmc |
1.3 |
#ifndef SHAP_FILT_OPTIONS_H |
7 |
|
|
#define SHAP_FILT_OPTIONS_H |
8 |
|
|
#include "PACKAGES_CONFIG.h" |
9 |
jmc |
1.4 |
#include "CPP_OPTIONS.h" |
10 |
|
|
|
11 |
jmc |
1.3 |
#ifdef ALLOW_SHAP_FILT |
12 |
jmc |
1.4 |
C Package-specific Options & Macros go here |
13 |
cnh |
1.1 |
|
14 |
|
|
C Use [1-d_yy^n)(1-d_xx^n] instead of [1-d_xx^n-d_yy^n] |
15 |
|
|
C This changes the spectral response function dramatically. |
16 |
|
|
C You need to do some analysis before changing this option. ;^) |
17 |
|
|
#define SEQUENTIAL_2D_SHAP |
18 |
|
|
|
19 |
|
|
C This invokes the older code which produces the same numbers |
20 |
|
|
C and might even be faster because it does not do multiple |
21 |
|
|
C exchanges within the filter. However, this requires the |
22 |
|
|
C overlap to be sufficiently wide and also does not work |
23 |
|
|
C for arbitrarily arranged tiles (ie. as in cubed-sphere). |
24 |
|
|
C *DO NOT USE THIS OPTION UNLESS YOU REALLY WANT TO* :-( |
25 |
|
|
#undef USE_OLD_SHAPIRO_FILTERS |
26 |
jmc |
1.3 |
|
27 |
|
|
#ifdef USE_OLD_SHAPIRO_FILTERS |
28 |
|
|
C Boundary conditions for U,V Shapiro code |
29 |
|
|
C Horizontal shear is calculated as if the boundaries are no-slip |
30 |
|
|
C Note: option NO_SLIP_SHAP only used in OLD_SHAPIRO_FILTERS ; |
31 |
|
|
C it is replaced by parameter "Shap_noSlip=1." in new S/R. |
32 |
|
|
#undef NO_SLIP_SHAP |
33 |
|
|
#endif |
34 |
|
|
|
35 |
|
|
C Masking of vorticity in dissipation terms (and Shap-Filt) |
36 |
|
|
C can be different from the masking applied for momentum advection; |
37 |
|
|
C This option allows to use the local S/R: SHAP_FILT_RELVORT3 to |
38 |
|
|
C compute vorticity, instead of pkg/mom_common S/R: MOM_CALC_RELVORT3 |
39 |
|
|
#define USE_SHAP_CALC_VORTICITY |
40 |
|
|
|
41 |
|
|
#endif /* ALLOW_SHAP_FILT */ |
42 |
|
|
#endif /* SHAP_FILT_OPTIONS_H */ |