-
Notifications
You must be signed in to change notification settings - Fork 0
/
cppdefs.h
1941 lines (1881 loc) · 43 KB
/
cppdefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
! $Id: cppdefs.h 1628 2015-01-10 13:53:00Z marchesiello $
!
!======================================================================
! CROCO is a branch of ROMS developped at IRD and INRIA, in France
! The two other branches from UCLA (Shchepetkin et al)
! and Rutgers University (Arango et al) are under MIT/X style license.
! CROCO specific routines (nesting) are under CeCILL-C license.
!
! CROCO website : http://www.croco-ocean.org
!======================================================================
!
/*
This is "cppdefs.h": MODEL CONFIGURATION FILE
==== == ============ ===== ============= ====
*/
/*
SELECT ACADEMIC TEST CASES
*/
#undef BASIN /* Basin Example */
#undef CANYON /* Canyon Example */
#undef EQUATOR /* Equator Example */
#undef INNERSHELF /* Inner Shelf Example */
#undef SINGLE_COLUMN /* 1DV vertical mixing Example */
#undef RIVER /* River run-off Example */
#undef OVERFLOW /* Gravitational/Overflow Example */
#undef SEAMOUNT /* Seamount Example */
#undef SHELFRONT /* Shelf Front Example */
#undef SOLITON /* Equatorial Rossby Wave Example */
#undef THACKER /* Thacker wetting-drying Example */
#undef UPWELLING /* Upwelling Example */
#undef VORTEX /* Baroclinic Vortex Example */
#undef INTERNAL /* Internal Tide Example */
#undef IGW /* COMODO Internal Tide Example */
#undef JET /* Baroclinic Jet Example */
#undef SHOREFACE /* Shoreface Test Case on a Planar Beach */
#undef RIP /* Rip Current Test Case */
#undef SANDBAR /* Bar-generating Flume Example */
#undef SWASH /* Swash Test Case on a Planar Beach */
#undef TANK /* Tank Example */
#undef MOVING_BATHY /* Moving Bathymetry Example */
#undef ACOUSTIC /* Acoustic wave Example */
#undef GRAV_ADJ /* Graviational Adjustment Example */
#undef ISOLITON /* Internal Soliton Example */
#undef KH_INST /* Kelvin-Helmholtz Instability Example */
#undef TS_HADV_TEST /* Horizontal tracer advection Example */
#undef DUNE /* Dune migration Example */
#undef SED_TOY /* 1DV sediment toy Example */
#undef TIDAL_FLAT /* 2DV tidal flat Example */
#undef ESTUARY /* 3D tidal estuary Example */
/*
... OR REALISTIC CONFIGURATIONS
*/
#undef COASTAL /* COASTAL Applications */
#define REGIONAL /* REGIONAL Applications */
#if defined REGIONAL
/*
!====================================================================
! REGIONAL (realistic) Configurations
!====================================================================
!
!----------------------
! BASIC OPTIONS
!----------------------
!
*/
/* Configuration Name */
# undef BENGUELA_LR
# define SCARIBOS_V8
/* Parallelization */
# undef OPENMP
# define MPI
/* Non-hydrostatic option */
# undef NBQ
# undef CROCO_QH
/* Nesting */
# undef AGRIF
# undef AGRIF_2WAY
/* OA and OW Coupling via OASIS (MPI) */
# undef OA_COUPLING
# undef OW_COUPLING
# ifdef OW_COUPLING
# undef OW_COUPLING_FULL
# endif
/* Wave-current interactions */
# undef MRL_WCI
/* Open Boundary Conditions */
# define TIDES
# define OBC_EAST
# define OBC_WEST
# define OBC_NORTH
# undef OBC_SOUTH
/* Applications */
# undef BIOLOGY
# undef FLOATS
# undef STATIONS
# undef PASSIVE_TRACER
# undef SEDIMENT
# undef MUSTANG
# undef BBL
/* I/O server */
# undef XIOS
/* Calendar */
# undef USE_CALENDAR
/* dedicated croco.log file */
# undef LOGFILE
/*
!-------------------------------------------------
! PRE-SELECTED OPTIONS
!
! ADVANCED OPTIONS ARE IN CPPDEFS_DEV.H
!-------------------------------------------------
*/
/* Parallelization */
# ifdef MPI
# undef PARALLEL_FILES
# undef NC4PAR
# undef MPI_NOLAND
# undef MPI_TIME
# endif
# undef AUTOTILING
/* Non-hydrostatic options */
# ifdef NBQ
# define W_HADV_TVD
# define W_VADV_TVD
# endif
/* Grid configuration */
# define CURVGRID
# define SPHERICAL
# define MASKING
# undef WET_DRY
# define NEW_S_COORD
/* Model dynamics */
# define SOLVE3D
# define UV_COR
# define UV_ADV
/* Equation of State */
# define SALINITY
# define NONLIN_EOS
/* Surface Forcing */
/*
! Bulk flux algorithms (options)
! by default : COARE3p0 paramet with GUSTINESS effects
!
! To change bulk param, define one the following keys (exclusive) :
! - define BULK_ECUMEV0 : ECUME_v0 param
! - define BULK_ECUMEV6 : ECUME_v6 param
! - define BULK_WASP : WASP param
! Note : gustiness effects can be added for all params
! by defining BULK_GUSTINESS
*/
# define BULK_FLUX
# ifdef BULK_FLUX
# undef BULK_ECUMEV0
# undef BULK_ECUMEV6
# undef BULK_WASP
# define BULK_GUSTINESS
# define BULK_LW
# undef SST_SKIN
# undef ANA_DIURNAL_SW
# undef ONLINE
# ifdef ONLINE
# undef AROME
# define ERA_ECMWF
# endif
# undef READ_PATM
# ifdef READ_PATM
# define OBC_PATM
# endif
# else
# define QCORRECTION
# define SFLX_CORR
# undef SFLX_CORR_COEF
# define ANA_DIURNAL_SW
# endif
# undef SFLUX_CFB
# undef SEA_ICE_NOFLUX
/* Lateral Forcing */
# undef CLIMATOLOGY
# ifdef CLIMATOLOGY
# define ZCLIMATOLOGY
# define M2CLIMATOLOGY
# define M3CLIMATOLOGY
# define TCLIMATOLOGY
# define ZNUDGING
# define M2NUDGING
# define M3NUDGING
# define TNUDGING
# undef ROBUST_DIAG
# endif
# define FRC_BRY
# ifdef FRC_BRY
# define Z_FRC_BRY
# define M2_FRC_BRY
# define M3_FRC_BRY
# define T_FRC_BRY
# endif
/* Lateral Momentum Advection (default UP3) */
# define UV_HADV_UP3
# undef UV_HADV_UP5
# undef UV_HADV_WENO5
# undef UV_HADV_TVD
/* Lateral Explicit Momentum Mixing */
# undef UV_VIS2
# ifdef UV_VIS2
# define UV_VIS_SMAGO
# endif
/* Vertical Momentum Advection */
# define UV_VADV_SPLINES
# undef UV_VADV_WENO5
# undef UV_VADV_TVD
/* Lateral Tracer Advection (default UP3) */
# undef TS_HADV_UP3
# define TS_HADV_RSUP3
# undef TS_HADV_UP5
# undef TS_HADV_WENO5
/* Lateral Explicit Tracer Mixing */
# undef TS_DIF2
# undef TS_DIF4
# undef TS_MIX_S
/* Vertical Tracer Advection */
# define TS_VADV_SPLINES
# undef TS_VADV_AKIMA
# undef TS_VADV_WENO5
/* Sponge layers for UV and TS */
# define SPONGE
/* Semi-implicit Vertical Tracer/Mom Advection */
# undef VADV_ADAPT_IMP
/* Bottom friction in fast 3D step */
# define LIMIT_BSTRESS
# undef BSTRESS_FAST
/* Vertical Mixing */
# undef BODYFORCE
# undef BVF_MIXING
# define LMD_MIXING
# undef GLS_MIXING
# ifdef LMD_MIXING
# define LMD_SKPP
# define LMD_BKPP
# define LMD_RIMIX
# define LMD_CONVEC
# define LMD_NONLOCAL
# undef LMD_DDMIX
# undef LMD_LANGMUIR
# endif
/* Wave-current interactions */
# ifdef OW_COUPLING
# define MRL_WCI
# define BBL
# endif
# ifdef MRL_WCI
# ifndef OW_COUPLING
# undef WAVE_OFFLINE
# define ANA_WWAVE
# undef WKB_WWAVE
# endif
# undef WAVE_ROLLER
# define WAVE_STREAMING
# define WAVE_FRICTION
# define WAVE_RAMP
# ifdef WKB_WWAVE
# undef WKB_OBC_NORTH
# undef WKB_OBC_SOUTH
# define WKB_OBC_WEST
# undef WKB_OBC_EAST
# endif
# endif
/* Bottom Forcing */
# define ANA_BSFLUX
# define ANA_BTFLUX
/* Point Sources - Rivers */
# undef PSOURCE
# define PSOURCE_NCFILE
# ifdef PSOURCE_NCFILE
# undef PSOURCE_NCFILE_TS
# endif
/* Open Boundary Conditions */
# ifdef TIDES
# define SSH_TIDES
# define UV_TIDES
# define POT_TIDES
# undef TIDES_MAS
# ifndef UV_TIDES
# define OBC_REDUCED_PHYSICS
# endif
# define TIDERAMP
# endif
# define OBC_M2CHARACT
# undef OBC_M2ORLANSKI
# define OBC_M3ORLANSKI
# define OBC_TORLANSKI
# undef OBC_M2SPECIFIED
# undef OBC_M3SPECIFIED
# undef OBC_TSPECIFIED
/* Input/Output */
# define AVERAGES
# define AVERAGES_K
# undef OUTPUTS_SURFACE
# undef HOURLY_VELOCITIES
/* Exact restart */
# undef EXACT_RESTART
/* Parallel reproducibility or restartabilty test */
# undef RVTK_DEBUG
# undef RVTK_DEBUG_PERFRST
# if defined RVTK_DEBUG && !defined RVTK_DEBUG_PERFRST
! Parallel reproducibility test
# undef RVTK_DEBUG_ADVANCED
# define XXXRVTK_DEBUG_READ
# elif defined RVTK_DEBUG && defined RVTK_DEBUG_PERFRST
! Restartability test
# define EXACT_RESTART
# undef RVTK_DEBUG_ADVANCED
# define XXXRVTK_DEBUG_READ
# endif
! RVTK test (Restartability or Parallel reproducibility)
# if defined RVTK_DEBUG && defined BULK_FLUX && defined ONLINE
# define BULK_MONTH_1DIGIT
# endif
/*
! Diagnostics
!--------------------------------------------
! 3D Tracer & momentum balance
! 2D Mixing layer balance
! Depth-mean vorticity and energy balance
! Eddy terms
!--------------------------------------------
!
*/
# undef DO_NOT_OVERWRITE
# undef RESTART_DIAGS
# undef DIAGNOSTICS_TS
# undef DIAGNOSTICS_UV
# ifdef DIAGNOSTICS_TS
# undef DIAGNOSTICS_TS_ADV
# undef DIAGNOSTICS_TS_MLD
# endif
# undef DIAGNOSTICS_TSVAR
# ifdef DIAGNOSTICS_TSVAR
# define DIAGNOSTICS_TS
# define DIAGNOSTICS_TS_ADV
# endif
# undef DIAGNOSTICS_VRT
# undef DIAGNOSTICS_EK
# ifdef DIAGNOSTICS_EK
# undef DIAGNOSTICS_EK_FULL
# undef DIAGNOSTICS_EK_MLD
# endif
# undef DIAGNOSTICS_BARO
# undef DIAGNOSTICS_PV
# undef DIAGNOSTICS_DISS
# ifdef DIAGNOSTICS_DISS
# define DIAGNOSTICS_PV
# endif
# undef DIAGNOSTICS_EDDY
# undef TENDENCY
# ifdef TENDENCY
# define DIAGNOSTICS_UV
# endif
/*
! Applications:
!---------------------------------
! Biology, floats, Stations,
! Passive tracer, Sediments, BBL
!---------------------------------
!
Quasi-monotone lateral advection scheme (WENO5)
for passive/biology/sediment tracers
*/
# if defined PASSIVE_TRACER || defined BIOLOGY || defined SEDIMENT \
|| defined MUSTANG
# define BIO_HADV_WENO5
# endif
/* Choice of Biology models */
# ifdef BIOLOGY
# undef PISCES
# undef BIO_NChlPZD
# undef BIO_N2ChlPZD2
# define BIO_BioEBUS
/* Biology options */
# ifdef PISCES
# undef DIURNAL_INPUT_SRFLX
# define key_pisces
# define key_ligand
# undef key_pisces_quota
# undef key_sediment
# endif
# ifdef BIO_NChlPZD
# define OXYGEN
# endif
# ifdef BIO_BioEBUS
# define NITROUS_OXIDE
# endif
/* Biology diagnostics */
# define DIAGNOSTICS_BIO
# if defined DIAGNOSTICS_BIO && defined PISCES
# define key_trc_diaadd
# endif
# endif
/* Lagrangian floats model */
# ifdef FLOATS
# undef FLOATS_GLOBAL_ATTRIBUTES
# undef IBM
# undef RANDOM_WALK
# ifdef RANDOM_WALK
# define DIEL_MIGRATION
# define RANDOM_VERTICAL
# define RANDOM_HORIZONTAL
# endif
# endif
/* Stations recording */
# ifdef STATIONS
# define ALL_SIGMA
# endif
/* USGS Sediment model */
# ifdef SEDIMENT
# define SUSPLOAD
# define BEDLOAD
# define MORPHODYN
# endif
/* MUSTANG Sediment model */
# ifdef MUSTANG
# undef key_MUSTANG_V2
# undef key_MUSTANG_bedload
# undef MORPHODYN
# define key_sand2D
# define MUSTANG_CORFLUX
# undef key_tauskin_c_upwind
# undef WAVE_OFFLINE
# endif
#elif defined COASTAL
/*
!====================================================================
! COASTAL (realistic) Configurations
!====================================================================
!
!----------------------
! BASIC OPTIONS
!----------------------
!
*/
/* Configuration Name */
# define VILAINE
/* Parallelization */
# undef OPENMP
# undef MPI
/* Open Boundary Conditions */
# define TIDES
# define OBC_EAST
# define OBC_WEST
# define OBC_NORTH
# undef OBC_SOUTH
/* Applications */
# undef BIOLOGY
# undef FLOATS
# undef STATIONS
# undef PASSIVE_TRACER
# undef SEDIMENT
# undef BBL
# define MUSTANG
/* I/O server */
# undef XIOS
/* Custion IO */
# define ZETA_DRY_IO
# define FILLVAL
/* Calendar */
# undef START_DATE
# define USE_CALENDAR
/* dedicated croco.log file */
# undef LOGFILE
/*!
!-------------------------------------------------
! PRE-SELECTED OPTIONS
!
! ADVANCED OPTIONS ARE IN CPPDEFS_DEV.H
!-------------------------------------------------
*/
/* Parallelization */
# ifdef MPI
# define NC4PAR
# undef MPI_NOLAND
# undef MPI_TIME
# endif
# undef AUTOTILING
/* Non-hydrostatic options */
# ifdef NBQ
# define W_HADV_WENO5
# define W_VADV_WENO5
# endif
/* Grid configuration */
# define ANA_INITIAL
# define CURVGRID
# define SPHERICAL
# define MASKING
# define WET_DRY
# define NEW_S_COORD
/* Model dynamics */
# define SOLVE3D
# define UV_COR
# define UV_ADV
/* Equation of State */
# define SALINITY
# define NONLIN_EOS
/* Lateral Momentum Advection (default UP3) */
# undef UV_HADV_UP3
# define UV_HADV_WENO5
/* Lateral Explicit Momentum Mixing */
# define UV_VIS2
# ifdef UV_VIS2
# define UV_VIS_SMAGO
# endif
/* Vertical Momentum Advection */
# undef UV_VADV_SPLINES
# define UV_VADV_WENO5
/* Lateral Tracer Advection (default UP3) */
# undef TS_HADV_UP3
# define TS_HADV_WENO5
/* Lateral Explicit Tracer Mixing */
# define TS_DIF2
# define TS_MIX_S
/* Vertical Tracer Advection */
# undef TS_VADV_SPLINES
# define TS_VADV_WENO5
/* Sponge layers for UV and TS */
# define SPONGE
/* Semi-implicit Vertical Tracer/Mom Advection */
# undef VADV_ADAPT_IMP
/* Bottom friction in fast 3D step */
# define LIMIT_BSTRESS
# undef BSTRESS_FAST
/* Vertical Mixing */
# define GLS_MIXING
/* Surface Forcing */
# define BULK_FLUX
# ifdef BULK_FLUX
# undef ECUMEv0
# undef ECUMEv6
# undef WASP
# define GUSTINESS
# undef BULK_LW
# undef SST_SKIN
# undef ANA_DIURNAL_SW
# define ONLINE
# ifdef ONLINE
# define AROME
# undef ERA_ECMWF
# endif
# define READ_PATM
# ifdef READ_PATM
# define OBC_PATM
# endif
# else
# undef QCORRECTION
# undef SFLX_CORR
# undef SFLX_CORR_COEF
# undef ANA_DIURNAL_SW
# endif
# undef ANA_SSFLUX
# define ANA_STFLUX
/* Lateral Forcing */
# undef ANA_BRY
# define FRC_BRY
# ifdef FRC_BRY
# define Z_FRC_BRY
# define M2_FRC_BRY
# undef M3_FRC_BRY
# define T_FRC_BRY
# endif
/* Bottom Forcing */
# define ANA_BSFLUX
# define ANA_BTFLUX
/* Point Sources - Rivers */
# define PSOURCE
# undef PSOURCE_MASS
# define PSOURCE_NCFILE
# ifdef PSOURCE_NCFILE
# define PSOURCE_NCFILE_TS
# endif
/* Open Boundary Conditions */
# ifdef TIDES
# define M2FILTER_NONE
# define SSH_TIDES
# define UV_TIDES
# undef POT_TIDES
# define TIDES_MAS
# ifndef UV_TIDES
# define OBC_REDUCED_PHYSICS
# endif
# define TIDERAMP
# endif
# define OBC_M2CHARACT
# define OBC_M3ORLANSKI
# define OBC_TORLANSKI
/* Input/Output */
# undef AVERAGES
# undef AVERAGES_K
# undef OUTPUTS_SURFACE
# undef HOURLY_VELOCITIES
/*
! Applications:
!---------------------------------
! Biology, floats, Stations,
! Passive tracer, Sediments, BBL
!---------------------------------
!
Quasi-monotone lateral advection scheme (WENO5)
for passive/biology/sediment tracers
*/
# if defined PASSIVE_TRACER || defined BIOLOGY || defined SEDIMENT \
|| defined SUBSTANCE || defined MUSTANG
# define BIO_HADV_WENO5
# endif
/* USGS Sediment model */
# ifdef SEDIMENT
# define SUSPLOAD
# define BEDLOAD
# define MORPHODYN
# endif
/* MUSTANG Sediment model */
# ifdef MUSTANG
# undef key_MUSTANG_V2
# undef key_MUSTANG_bedload
# undef MORPHODYN
# define key_sand2D
# define MUSTANG_CORFLUX
# undef key_tauskin_c_upwind
# define WAVE_OFFLINE
# undef key_MUSTANG_specif_outputs
# endif
/*
!
!==========================================================
! IDEALIZED CONFIGURATIONS
!==========================================================
!
*/
#elif defined BASIN
/*
! Basin Example
! ===== =======
*/
# undef OPENMP
# undef MPI
# define UV_ADV
# define UV_COR
# define UV_VIS2
# define SOLVE3D
# define TS_DIF2
# define BODYFORCE
# define ANA_GRID
# define ANA_INITIAL
# define ANA_SMFLUX
# define ANA_STFLUX
# define ANA_BTFLUX
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined CANYON
/*
! Canyon Example
! ====== =======
*/
# undef OPENMP
# undef MPI
# define CANYON_STRAT
# define UV_ADV
# define UV_COR
# define SOLVE3D
# define EW_PERIODIC
# define ANA_GRID
# define ANA_INITIAL
# define ANA_SMFLUX
# define ANA_STFLUX
# define ANA_BTFLUX
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined EQUATOR
/*
! Equator Example
! ======= =======
! Boccaletti, G., R.C. Pacanowski, G.H. Philander and A.V. Fedorov, 2004,
! The Thermal Structure of the Upper Ocean, J.Phys.Oceanogr., 34, 888-902.
*/
# undef OPENMP
# undef MPI
# define UV_ADV
# define UV_COR
# define UV_VIS2
# define SOLVE3D
# define TS_DIF2
# define ANA_GRID
# define ANA_INITIAL
# define ANA_SMFLUX
# define ANA_STFLUX
# define ANA_SRFLUX
# define ANA_SSFLUX
# define ANA_BTFLUX
# define ANA_BSFLUX
# define QCORRECTION
# define ANA_SST
# define LMD_MIXING
# define LMD_RIMIX
# define LMD_CONVEC
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined INNERSHELF
/*
! Inner Shelf Example
! ===== ===== =======
*/
# undef OPENMP
# undef MPI
# undef NBQ
# define INNERSHELF_EKMAN
# define INNERSHELF_APG
# define SOLVE3D
# define UV_COR
# define ANA_GRID
# define ANA_INITIAL
# define AVERAGES
# define ANA_SSFLUX
# define ANA_SRFLUX
# define ANA_STFLUX
# define ANA_BSFLUX
# define ANA_BTFLUX
# define ANA_SMFLUX
# define NS_PERIODIC
# define OBC_WEST
# define SPONGE
# ifndef INNERSHELF_EKMAN
# define UV_ADV
# define SALINITY
# define NONLIN_EOS
# define LMD_MIXING
# undef GLS_MIXING
# ifdef LMD_MIXING
# define LMD_SKPP
# define LMD_BKPP
# define LMD_RIMIX
# define LMD_CONVEC
# endif
# undef WAVE_MAKER_INTERNAL
# ifdef WAVE_MAKER_INTERNAL
# define ANA_BRY
# define Z_FRC_BRY
# define M2_FRC_BRY
# define M3_FRC_BRY
# define T_FRC_BRY
# endif
# endif
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined SINGLE_COLUMN
/*
! Single Column Example
! ====== ====== =======
!
! Seven sets up are encompassed :
*/
# define KATO_PHILIPS /* erosion of linear strat by constant wind stress */
# undef WILLIS_DEARDORFF /* erosion of linear strat by constant surf buoyancy loss */
# undef DIURNAL_CYCLE /* erosion of linear strat by constant surf buoyancy loss */
# undef FORCED_EKBBL /* forced Ekman bottom boundary layer */
# undef FORCED_DBLEEK /* forced Ekman bottom and surface boundary layers */
# undef FORCED_NONROTBBL /* non rotating forced bottom boundary layer : Prandt layer */
# undef FORCED_OSCNONROTBBL /* non rotating oscillatory forced bottom boundary layer */
# undef OPENMP
# undef MPI
# define UV_ADV
# define NEW_S_COORD
# define UV_COR
# define SOLVE3D
# undef LMD_MIXING
# define GLS_MIXING
# define ANA_GRID
# define ANA_INITIAL
# define ANA_SMFLUX
# define ANA_SRFLUX
# define ANA_STFLUX
# define ANA_BTFLUX
# define EW_PERIODIC
# define NS_PERIODIC
# undef RVTK_DEBUG
#elif defined INTERNAL
/*
! Internal Tide Example
! ======== ==== =======
!
! Di Lorenzo, E, W.R. Young and S.L. Smith, 2006, Numerical and anlytical estimates of M2
! tidal conversion at steep oceanic ridges, J. Phys. Oceanogr., 36, 1072-1084.
*/
# undef OPENMP
# undef MPI
# define SOLVE3D
# define UV_COR
# define UV_ADV
# define BODYTIDE
# define ANA_GRID
# define ANA_INITIAL
# define ANA_BTFLUX
# define ANA_SMFLUX
# define ANA_SRFLUX
# define ANA_STFLUX
# define ANA_VMIX
# define EW_PERIODIC
# define NS_PERIODIC
# ifdef INTERNALSHELF
# undef EW_PERIODIC
# define OBC_EAST
# define OBC_WEST
# define SPONGE
# define ANA_SSH
# define ANA_M2CLIMA
# define ANA_M3CLIMA
# define ANA_TCLIMA
# define ZCLIMATOLOGY
# define M2CLIMATOLOGY
# define M3CLIMATOLOGY
# define TCLIMATOLOGY
# define M2NUDGING
# define M3NUDGING
# define TNUDGING
# endif
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined IGW
/*
! COMODO Internal Tide Example
! ====== ======== ==== =======
!
! Pichon, A., 2007: Tests academiques de maree, Rapport interne n 21 du 19 octobre 2007,
! Service Hydrographique et Oceanographique de la Marine.
*/
# define EXPERIMENT3
# undef OPENMP
# undef MPI
# undef NBQ
# define NEW_S_COORD
# define TIDES
# define TIDERAMP
# define SSH_TIDES
# define UV_TIDES
# define SOLVE3D
# define UV_ADV
# define UV_COR
# define UV_VIS2
# undef VADV_ADAPT_IMP
# define SPHERICAL
# define CURVGRID
# define ANA_INITIAL
# define ANA_VMIX
# define ANA_SMFLUX
# define ANA_STFLUX
# define ANA_SRFLUX
# define ANA_SSFLUX
# define ANA_BTFLUX
# define ANA_BSFLUX
# define NS_PERIODIC
# define OBC_EAST
# define OBC_WEST
# undef SPONGE
# define ANA_SSH
# define ANA_M2CLIMA
# define ANA_M3CLIMA
# define ANA_TCLIMA
# define ZCLIMATOLOGY
# define M2CLIMATOLOGY
# define M3CLIMATOLOGY
# define TCLIMATOLOGY
# define M2NUDGING
# define M3NUDGING
# define TNUDGING
# undef ONLINE_ANALYSIS
# undef RVTK_DEBUG
#elif defined RIVER
/*
! River run-off test problem
! ==========================
*/
# undef OPENMP
# undef MPI
# define SOLVE3D
# define UV_ADV
# define UV_COR
# define NONLIN_EOS
# define SALINITY
# define ANA_GRID
# define MASKING
# define ANA_INITIAL
# define ANA_SMFLUX
# define ANA_STFLUX
# define ANA_SSFLUX
# define ANA_SRFLUX
# define ANA_BTFLUX
# define ANA_BSFLUX
# define LMD_MIXING
# define LMD_SKPP
# define LMD_BKPP
# define LMD_RIMIX
# define LMD_CONVEC
# define PSOURCE
# undef PSOURCE_MASS
# define ANA_PSOURCE
# define NS_PERIODIC
# undef FLOATS
# ifdef FLOATS
# define RANDOM_WALK
# ifdef RANDOM_WALK
# define DIEL_MIGRATION
# define RANDOM_VERTICAL
# define RANDOM_HORIZONTAL
# endif
# endif
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined SEAMOUNT
/*
! Seamount Example
! ======== =======
*/
# undef OPENMP
# undef MPI
# define UV_ADV
# define UV_COR
# define SOLVE3D
# define SALINITY
# define NONLIN_EOS
# define ANA_GRID
# define ANA_INITIAL
# define ANA_SMFLUX
# define ANA_STFLUX
# define ANA_SSFLUX
# define ANA_SRFLUX
# define ANA_BTFLUX
# define ANA_BSFLUX
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined SHELFRONT
/*
! Shelf Front Example
! ===== ===== =======
*/
# undef OPENMP
# undef MPI
# define UV_ADV
# define UV_COR
# define SOLVE3D
# define SALINITY
# define ANA_GRID
# define ANA_INITIAL
# define ANA_SMFLUX
# define ANA_STFLUX
# define ANA_SSFLUX
# define ANA_SRFLUX
# define ANA_BTFLUX
# define ANA_BSFLUX
# define EW_PERIODIC
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined SOLITON
/*
! Equatorial Rossby Wave Example
! ========== ====== ==== =======
*/
# undef OPENMP
# undef MPI
# define UV_COR
# define UV_ADV
# define ANA_GRID
# define ANA_INITIAL
# define AVERAGES
# define EW_PERIODIC
# define ANA_SMFLUX
# define ANA_BTFLUX
# define NO_FRCFILE
# undef RVTK_DEBUG
#elif defined THACKER
/*
! Thacker Example