# Why I am getting such error when compiling using jobcomp.

**URL:** <https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417>\
**Category:** compilation-installation\
**Tags:** compilation-installation, parallelization, download, dynamics-numerics\
**Created:** [December 7, 2022, 7:29am UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417 "2022-12-07T07:29:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IMRAN5379](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/i/58f4c7/32.png) [@IMRAN5379](https://forum.croco-ocean.org/u/IMRAN5379)\
**Post date:** [December 7, 2022, 7:29am UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417/1 "2022-12-07T07:29:46Z")

</div>

gfortran -c -O2 -mcmodel=medium -fdefault-real-8 -fdefault-double-8 -std=legacy partit._.f -o partit.o  
partit._.f:2359:31:

```
             if (size .gt. 8*max_buff_size) then
                           1

```

Error: Arithmetic overflow at (1)  
partit.\_.f:2363:37:

```
  & 'available:', 8*max_buff_size, 'Bytes.',
                                 1

```

Error: Arithmetic overflow at (1)  
partit.\_.f:2505:33:

```
               if (size .gt. 8*max_buff_size) then
                             1

```

Error: Arithmetic overflow at (1)  
partit.\_.f:2509:37:

```
  & 'available:', 8*max_buff_size, 'Bytes.',
                                 1

```

Error: Arithmetic overflow at (1)  
partit.\_.f:2512:21:

```
               endif
                 1

```

Error: Expecting END DO statement at (1)  
partit.\_.f:2565:15:

```
         endif ! <--series(i) .or. rec.eq.1
           1

```

Error: Expecting END DO statement at (1)  
Makefile:245: recipe for target ‘partit’ failed  
make: \*\*\* [partit] Error 1

---

<div class="post-metadata">

**Author:** ![Gui](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@Gui](https://forum.croco-ocean.org/u/Gui)\
**Post date:** [December 7, 2022, 1:45pm UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417/2 "2022-12-07T13:45:06Z")

</div>

Hi,

Maybe an incompatibility between options and gfortran version… Can you send us the version of gfortran you have, just typing : gfortran --version

Again , Do you already compile croco with this version of gfortran for an another case and did it work well without the same errors you had ?

Also, can you post the cppdefs.h file, just to test it.

Thanks

Guillaume

---

<div class="post-metadata">

**Author:** ![Rachid](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/rachid/32/296_2.png) [@Rachid](https://forum.croco-ocean.org/u/Rachid)\
**Post date:** [December 8, 2022, 1:19pm UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417/3 "2022-12-08T13:19:28Z")

</div>

Hi

There is an old version of jobcomp in croco/OCEAN directory called something like _partit.F\_optim\_nocompatible\_bryfile_ . You can remplace OCEAN/partit.F by this old version(overwrite it). Just a guess

Rachid

---

<div class="post-metadata">

**Author:** ![IMRAN5379](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/i/58f4c7/32.png) [@IMRAN5379](https://forum.croco-ocean.org/u/IMRAN5379)\
**Post date:** [December 8, 2022, 8:30pm UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417/4 "2022-12-08T20:30:56Z")

</div>

Hi  
I have just switched to CROCO, jobcomp used in ROMS works fine but in Croco, I am getting this error though I have checked both (ROMS & CROCO) partit.F files and compared them.  
below is the attached cppdef.h file used in Croco.

! $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](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 N\_BOB\_LR

```
                  /* 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 */

```

# undef TIDES

# undef OBC\_EAST

# undef OBC\_WEST

# undef OBC\_NORTH

# define 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 BULK\_EP

# undef SST\_SKIN

# undef ANA\_DIURNAL\_SW

# undef ONLINE

# ifdef ONLINE

# undef AROME

# undef 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

# undef 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

# undef 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

# undef OBC\_EAST

# define OBC\_WEST

# undef OBC\_NORTH

# define 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  
! ======= =======  
!  
! Thacker, W., (1981), Some exact solutions to the nonlinear  
! shallow-water wave equations. J. Fluid Mech., 107, 499-508.  
\*/

# undef OPENMP

# undef MPI

# define THACKER\_2DV

# define SOLVE3D

# define UV\_COR

# define UV\_ADV

# undef UV\_VIS2

# define WET\_DRY

# define NEW\_S\_COORD

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_BTFLUX

# define ANA\_SMFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined OVERFLOW  
/\*  
! Gravitational/Overflow Example  
! ====================== =======  
\*/

# undef OPENMP

# undef MPI

# define UV\_ADV

# define UV\_COR

# define UV\_VIS2

# define TS\_DIF2

# define TS\_MIX\_GEO

# define SOLVE3D

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_BTFLUX

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined UPWELLING  
/\*  
! Upwelling Example  
! ========= =======  
\*/

# undef OPENMP

# undef MPI

# define SOLVE3D

# define UV\_COR

# define UV\_ADV

# define ANA\_GRID

# define ANA\_INITIAL

# define AVERAGES

# define SALINITY

# define NONLIN\_EOS

# define ANA\_SSFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define ANA\_BSFLUX

# define ANA\_BTFLUX

# define ANA\_SMFLUX

# define LMD\_MIXING

# define LMD\_SKPP

# define LMD\_BKPP

# define LMD\_RIMIX

# define LMD\_CONVEC

# define EW\_PERIODIC

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined VORTEX  
/\*  
! Baroclinic Vortex Example (TEST AGRIF)  
! ========== ====== ======= ===== ======  
\*/

# undef OPENMP

# undef MPI

# undef AGRIF

# undef AGRIF\_2WAY

# undef NBQ

# define SOLVE3D

# define UV\_COR

# define UV\_ADV

# define ANA\_STFLUX

# define ANA\_SMFLUX

# define ANA\_BSFLUX

# define ANA\_BTFLUX

# define ANA\_VMIX

# define OBC\_EAST

# define OBC\_WEST

# define OBC\_NORTH

# define OBC\_SOUTH

# define SPONGE

# define ZCLIMATOLOGY

# define M2CLIMATOLOGY

# define M3CLIMATOLOGY

# define TCLIMATOLOGY

# define ZNUDGING

# define M2NUDGING

# define M3NUDGING

# define TNUDGING

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined JET  
/\*  
! Baroclinic JET Example  
! ========== === =======  
\*/

# define ANA\_JET

# undef MPI

# undef NBQ

# define SOLVE3D

# define UV\_COR

# define UV\_ADV

# define UV\_VIS2

# ifdef ANA\_JET

# define ANA\_GRID

# define ANA\_INITIAL

# endif

# define ANA\_STFLUX

# define ANA\_SMFLUX

# define ANA\_BSFLUX

# define ANA\_BTFLUX

# define ANA\_VMIX

# define EW\_PERIODIC

# define CLIMATOLOGY

# ifdef CLIMATOLOGY

# define ZCLIMATOLOGY

# define M2CLIMATOLOGY

# define M3CLIMATOLOGY

# define TCLIMATOLOGY

# define ZNUDGING

# define M2NUDGING

# define M3NUDGING

# define TNUDGING

# define ROBUST\_DIAG

# define ZONAL\_NUDGING

# ifdef ANA\_JET

# define ANA\_SSH

# define ANA\_M2CLIMA

# define ANA\_M3CLIMA

# define ANA\_TCLIMA

# endif

# endif

# define LMD\_MIXING

# ifdef LMD\_MIXING

# undef ANA\_VMIX

# define ANA\_SRFLUX

# undef LMD\_KPP

# define LMD\_RIMIX

# define LMD\_CONVEC

# endif

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined SHOREFACE  
/\*  
! PLANAR BEACH Example  
! ====== ===== =======  
!  
! Uchiyama, Y., McWilliams, J.C. and Shchepetkin, A.F. (2010):  
! Wave-current interaction in an oceanic circulation model with a  
! vortex force formalism: Application to the surf zone.  
! Ocean Modelling Vol. 34:1-2, pp.16-35.  
\*/

# undef OPENMP

# undef MPI

# define SOLVE3D

# define UV\_ADV

# undef MASKING

# define WET\_DRY

# define NEW\_S\_COORD

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_SSFLUX

# define ANA\_SRFLUX

# define ANA\_SST

# define ANA\_BTFLUX

# define NS\_PERIODIC

# define OBC\_WEST

# define SPONGE

# define MRL\_WCI

# ifdef MRL\_WCI

# undef WAVE\_OFFLINE

# ifndef WAVE\_OFFLINE

# define WKB\_WWAVE

# define WKB\_OBC\_WEST

# define WAVE\_FRICTION

# undef WAVE\_ROLLER

# undef MRL\_CEW

# endif

# endif

# define LMD\_MIXING

# define LMD\_SKPP

# define LMD\_BKPP

# undef BBL

# undef SEDIMENT

# ifdef SEDIMENT

# define SUSPLOAD

# define BEDLOAD

# define TCLIMATOLOGY

# define TNUDGING

# define ANA\_TCLIMA

# endif

# undef RVTK\_DEBUG

#elif defined SANDBAR  
/\*  
! SANDBAR Example  
! ======= =======  
!  
! Roelvink, J. A. and Reniers, A. (1995). Lip 11d delta flume experiments  
! – data report. Technical report, Delft, The Netherlands, Delft Hydraulics  
\*/

# define SANDBAR\_OFFSHORE /\* LIP-1B \*/

# undef SANDBAR\_ONSHORE /\* LIP-1C \*/

# undef OPENMP

# undef MPI

# undef NBQ

# define SOLVE3D

# define UV\_ADV

# define NEW\_S\_COORD

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_SSFLUX

# define ANA\_SRFLUX

# define ANA\_SST

# define ANA\_BTFLUX

# define OBC\_WEST

# define SPONGE

# define WET\_DRY

# ifndef NBQ /\* ! NBQ \*/

# define MRL\_WCI

# ifdef MRL\_WCI

# define WKB\_WWAVE

# define MRL\_CEW

# define WKB\_OBC\_WEST

# define WAVE\_ROLLER

# define WAVE\_FRICTION

# define WAVE\_BREAK\_TG86

# define WAVE\_BREAK\_SWASH

# define WAVE\_STREAMING

# undef WAVE\_RAMP

# endif

# define GLS\_MIXING

# define GLS\_KOMEGA

# undef LMD\_MIXING

# ifdef LMD\_MIXING

# define LMD\_SKPP

# define LMD\_BKPP

# define LMD\_VMIX\_SWASH

# endif

# define BBL

# else /\* NBQ \*/

# define MPI

# define NBQ\_PRECISE

# define WAVE\_MAKER

# define UV\_ADV

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define W\_HADV\_WENO5

# define W\_VADV\_WENO5

# define GLS\_MIXING\_3D

# define GLS\_KOMEGA

# define ANA\_BRY

# define Z\_FRC\_BRY

# define M2\_FRC\_BRY

# define M3\_FRC\_BRY

# define T\_FRC\_BRY

# define AVERAGES

# define AVERAGES\_K

# define DIAGNOSTICS\_EDDY

# endif /\* NBQ \*/

# define SEDIMENT

# ifdef SEDIMENT

# define SUSPLOAD

# ifndef NBQ

# define BEDLOAD

# endif

# define MORPHODYN

# define TCLIMATOLOGY

# define TNUDGING

# define ANA\_TCLIMA

# endif

# undef STATIONS

# ifdef STATIONS

# define ALL\_SIGMA

# endif

# undef DIAGNOSTICS\_TS

# ifdef DIAGNOSTICS\_TS

# define DIAGNOSTICS\_TS\_ADV

# endif

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined RIP  
/\*  
! Rip Current Example  
! === ======= =======  
!  
! Weir, B., Uchiyama, Y.. (2010):  
! A vortex force analysis of the interaction of rip  
! currents and surface gravity wave  
! JGR Vol. 116  
!  
! Default is idealized Duck Beach with 3D topography  
! RIP\_TOPO\_2D: Logshore uniform topography  
! BISCA: realistic case with Input files  
! GRANDPOPO: idealized Grand Popo Beach in Benin,  
! longshore uniform  
! WAVE\_MAKER & NBQ : wave resolving simulation  
! rather than wave-averaged (#undef MRL\_WCI)  
\*/

# undef BISCA

# undef RIP\_TOPO\_2D

# undef GRANDPOPO

# ifdef GRANDPOPO

# define RIP\_TOPO\_2D

# endif

# undef ANA\_TIDES

# undef OPENMP

# undef MPI

# define SOLVE3D

# define NEW\_S\_COORD

# define UV\_ADV

# undef NBQ

# ifdef NBQ

# define NBQ\_PRECISE

# define WAVE\_MAKER

# define WAVE\_MAKER\_SPECTRUM

# define WAVE\_MAKER\_DSPREAD

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define W\_HADV\_WENO5

# define W\_VADV\_WENO5

# define GLS\_MIXING\_3D

# undef ANA\_TIDES

# undef MRL\_WCI

# define OBC\_SPECIFIED\_WEST

# define FRC\_BRY

# define ANA\_BRY

# define Z\_FRC\_BRY

# define M2\_FRC\_BRY

# define M3\_FRC\_BRY

# define T\_FRC\_BRY

# define AVERAGES

# define AVERAGES\_K

# else

# define UV\_VIS2

# define UV\_VIS\_SMAGO

# define LMD\_MIXING

# define LMD\_SKPP

# define LMD\_BKPP

# define MRL\_WCI

# endif

# define WET\_DRY

# ifdef MRL\_WCI

# define WKB\_WWAVE

# define WKB\_OBC\_WEST

# define WAVE\_ROLLER

# define WAVE\_FRICTION

# define WAVE\_STREAMING

# define WAVE\_BREAK\_SWASH

# define MRL\_CEW

# ifdef RIP\_TOPO\_2D

# define WAVE\_RAMP

# endif

# endif

# ifndef BISCA

# define ANA\_GRID

# endif

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_SSFLUX

# define ANA\_SRFLUX

# define ANA\_SST

# define ANA\_BTFLUX

# if !defined BISCA && !defined ANA\_TIDES

# define NS\_PERIODIC

# else

# define OBC\_NORTH

# define OBC\_SOUTH

# endif

# define OBC\_WEST

# define SPONGE

# ifdef ANA\_TIDES

# define ANA\_SSH

# define ANA\_M2CLIMA

# define ANA\_M3CLIMA

# define ZCLIMATOLOGY

# define M2CLIMATOLOGY

# define M3CLIMATOLOGY

# define M2NUDGING

# define M3NUDGING

# endif

# ifdef BISCA

# define BBL

# endif

# undef SEDIMENT

# ifdef SEDIMENT

# define SUSPLOAD

# define BEDLOAD

# undef MORPHODYN

# endif

# undef DIAGNOSTICS\_UV

# undef RVTK\_DEBUG

#elif defined SWASH  
/\*  
! SWASH PLANAR BEACH Example  
! ===== ====== ===== =======  
!  
\*/

# define SWASH\_GLOBEX\_B2

# undef SWASH\_GLOBEX\_A3

# undef OPENMP

# undef MPI

# define SOLVE3D

# define AVERAGES

# define NBQ

# define NBQ\_PRECISE

# define WAVE\_MAKER

# define UV\_ADV

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define W\_HADV\_WENO5

# define W\_VADV\_WENO5

# define GLS\_MIXING\_3D

# define NEW\_S\_COORD

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_SSFLUX

# define ANA\_SRFLUX

# define ANA\_SST

# define ANA\_BTFLUX

# define OBC\_WEST

# define OBC\_SPECIFIED\_WEST

# define ANA\_BRY

# define Z\_FRC\_BRY

# define M2\_FRC\_BRY

# define M3\_FRC\_BRY

# define T\_FRC\_BRY

# define WET\_DRY

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined TANK  
/\*  
! Tank Example  
! ==== =======  
!  
! Chen, X.J., 2003. A fully hydrodynamic model for three-dimensional,  
! free-surface flows.  
! Int. J. Numer. Methods Fluids 42, 929â~@~S952.  
\*/

# undef MPI

# define NBQ

# ifdef NBQ

# define NBQ\_PRECISE

# endif

# define M2FILTER\_NONE

# define SOLVE3D

# undef UV\_ADV

# define NEW\_S\_COORD

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_BTFLUX

# define ANA\_SMFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined MOVING\_BATHY  
/\*  
! Moving Bathy Example  
! ====== ===== =======  
!  
! Auclair et al., Ocean Mod. 2014: Implementation of a time-dependent  
! bathymetry in a free-surface ocean model: Application to internal  
! wave generation  
!  
\*/

# undef MPI

# define ANA\_MORPHODYN

# define NBQ

# define NBQ\_PRECISE

# define M2FILTER\_NONE

# define SOLVE3D

# define NEW\_S\_COORD

# undef PASSIVE\_TRACER

# define UV\_ADV

# define TS\_HADV\_WENO5

# define TS\_VADV\_WENO5

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define W\_HADV\_WENO5

# define W\_VADV\_WENO5

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_VMIX

# define ANA\_BTFLUX

# define ANA\_SMFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined ACOUSTIC  
/\*  
! ACOUSTIC WAVE TESTCASE  
! ======== ==== ========  
\*/

# undef MPI

# define NBQ

# ifdef NBQ

# undef NBQ\_PRECISE

# endif

# undef UV\_VIS2

# define SOLVE3D

# define NEW\_S\_COORD

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_SRFLUX

# define ANA\_BTFLUX

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined GRAV\_ADJ  
/\*  
! Gravitational Adjustment Example  
! ============= ========== =======  
\*/

# undef OPENMP

# undef MPI

# undef NBQ

# undef XIOS

# define SOLVE3D

# define NEW\_S\_COORD

# define UV\_ADV

# define TS\_HADV\_WENO5

# define TS\_VADV\_WENO5

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# ifdef NBQ

# define W\_HADV\_WENO5

# define W\_VADV\_WENO5

# endif

# undef UV\_VIS2

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_BTFLUX

# undef PASSIVE\_TRACER

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined ISOLITON  
/\*  
! Gravitational Adjustment Example  
! ============= ========== =======  
!  
! Internal soliton case ISOLITON (non-hydrostatic) is setup from:  
! Horn, D.A., J. Imberger, & G.N. Ivey, (2001).  
! The degeneration of large-scale interfacial gravity waves in lakes.  
! J. Fluid Mech., 434:181-207.  
!  
\*/

# undef MPI

# define NBQ

# undef XIOS

# define SOLVE3D

# define NEW\_S\_COORD

# define UV\_ADV

# define TS\_HADV\_WENO5

# define TS\_VADV\_WENO5

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define W\_HADV\_WENO5

# define W\_VADV\_WENO5

# undef UV\_VIS2

# undef TS\_DIF2

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# define ANA\_BTFLUX

# undef PASSIVE\_TRACER

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined KH\_INST  
/\*  
! Kelvin-Helmholtz Instability Example  
! ================ =========== =======  
!  
\*/

# undef KH\_INSTY

# undef KH\_INST3D

# undef MPI

# define NBQ

# undef NBQ\_PRECISE

# undef XIOS

# define SOLVE3D

# define NEW\_S\_COORD

# define UV\_ADV

# define TS\_HADV\_WENO5

# define TS\_VADV\_WENO5

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define W\_HADV\_WENO5

# define W\_VADV\_WENO5

# undef SALINITY

# undef PASSIVE\_TRACER

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_STFLUX

# undef ANA\_SRFLUX

# define ANA\_BTFLUX

# define ANA\_SSFLUX

# define ANA\_BSFLUX

# ifndef KH\_INSTY

# define EW\_PERIODIC

# else

# define NS\_PERIODIC

# endif

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined TS\_HADV\_TEST  
/\*  
! Horizontal TRACER ADVECTION EXAMPLE  
! ========== ====== ========= =======  
!  
\*/

# undef SOLID\_BODY\_ROT /\* Example with spatially varying velocity \*/

# undef DIAGONAL\_ADV /\* Constant advection in the diagonal \*/

# define SOLID\_BODY\_PER /\* Example with a space and time-varying velocity \*/

# undef OPENMP

# undef MPI

# undef UV\_ADV

# define NEW\_S\_COORD

# undef UV\_COR

# define SOLVE3D

# define M2FILTER\_NONE

# define ANA\_VMIX

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define ANA\_BTFLUX

# define ANA\_BSFLUX

# define ANA\_SSFLUX

# define NO\_FRCFILE

# define SALINITY

# define EW\_PERIODIC

# define NS\_PERIODIC

# define TS\_HADV\_UP3 /\* Choose specific advection scheme \*/

# undef TS\_HADV\_C4

# undef TS\_HADV\_UP5

# undef TS\_HADV\_WENO5

# undef TS\_HADV\_C6

# undef RVTK\_DEBUG

#elif defined DUNE  
/\*  
! Dune test case example  
! ==== ==== ==== =======  
!  
\*/

# undef ANA\_DUNE /\* Analytical test case (Marieu) \*/

# undef DUNE3D /\* 3D Dune example \*/

# undef OPENMP

# undef MPI

# define M2FILTER\_NONE

# define UV\_ADV

# define NEW\_S\_COORD

# undef UV\_COR

# define SOLVE3D

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SSFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define ANA\_BSFLUX

# define ANA\_BTFLUX

# define ANA\_SMFLUX

# define OBC\_WEST

# define OBC\_EAST

# define ANA\_SSH

# define ZCLIMATOLOGY

# define ANA\_M2CLIMA

# define M2CLIMATOLOGY

# define SEDIMENT

# undef MUSTANG

# define MORPHODYN

# ifdef SEDIMENT

# undef SUSPLOAD

# define BEDLOAD

# undef BEDLOAD\_WENO5

# ifdef ANA\_DUNE

# define BEDLOAD\_MARIEU

# else

# define BEDLOAD\_WULIN

# define TAU\_CRIT\_WULIN

# endif

# endif

# ifdef MUSTANG

# define key\_MUSTANG\_V2

# define key\_MUSTANG\_bedload

# define key\_tauskin\_c\_upwind

# endif

# define GLS\_MIXING

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined SED\_TOY  
/\*  
! SED TOY (1D Single Column example)  
! === === === ====== ====== ========  
!  
_/ /_ Choose an experiment : \*/

# define SED\_TOY\_ROUSE /\* Rouse \*/

# undef SED\_TOY\_CONSOLID /\* Consolidation \*/

# undef SED\_TOY\_RESUSP /\* Erosion and sediment resuspension \*/

# undef SED\_TOY\_FLOC\_0D /\* Flocculation \*/

# undef SED\_TOY\_FLOC\_1D /\* Flocculation \*/

# undef OPENMP

# undef MPI

# define NEW\_S\_COORD

# define SOLVE3D

# undef NONLIN\_EOS

# define SALINITY

# undef UV\_VIS2

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define ANA\_SSFLUX

# define ANA\_BTFLUX

# define ANA\_BSFLUX

# define EW\_PERIODIC

# define NS\_PERIODIC

# ifdef SED\_TOY\_ROUSE

# define ANA\_VMIX

# define BODYFORCE

# endif

# ifdef SED\_TOY\_FLOC\_1D

# define ANA\_VMIX

# define BODYFORCE

# endif

# ifdef SED\_TOY\_FLOC\_0D

# define ANA\_VMIX

# define BODYFORCE

# endif

# define SEDIMENT

# undef MUSTANG

# ifdef MUSTANG

# if defined SED\_TOY\_FLOC\_0D || defined SED\_TOY\_FLOC\_1D

# define key\_MUSTANG\_flocmod

# define GLS\_MIXING

# define GLS\_KOMEGA

# endif

# endif

# ifdef SEDIMENT

# define SUSPLOAD

# undef BEDLOAD

# ifdef SED\_TOY\_ROUSE

# define SED\_TAU\_CD\_CONST

# endif

# if defined SED\_TOY\_FLOC\_1D || defined SED\_TOY\_CONSOLID || \

```
defined SED_TOY_RESUSP

```

# undef BBL

# define GLS\_MIXING

# define GLS\_KOMEGA

# define MIXED\_BED

# undef COHESIVE\_BED

# endif

# if defined SED\_TOY\_FLOC\_0D || defined SED\_TOY\_FLOC\_1D

# define FLOC\_TURB\_DISS

# undef FLOC\_BBL\_DISS

# define SED\_FLOCS

# undef SED\_DEFLOC

# endif

# endif

# undef MORPHODYN

# define NO\_FRCFILE

# undef RVTK\_DEBUG

#elif defined TIDAL\_FLAT  
/\*  
! TIDAL\_FLAT Example  
! ========== =======  
\*/

# undef OPENMP

# undef MPI

# undef NONLIN\_EOS

# define NEW\_S\_COORD

# define SALINITY

# define UV\_ADV

# define TS\_HADV\_WENO5

# define TS\_VADV\_WENO5

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define UV\_COR

# define SOLVE3D

# define UV\_VIS2

# define GLS\_MIXING

# define ANA\_INITIAL

# define WET\_DRY

# define TS\_DIF2

# define SPONGE

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define ANA\_SSFLUX

# define ANA\_BTFLUX

# define ANA\_BSFLUX

# define OBC\_WEST

# define FRC\_BRY

# ifdef FRC\_BRY

# define ANA\_BRY

# define Z\_FRC\_BRY

# define OBC\_M2CHARACT

# define OBC\_REDUCED\_PHYSICS

# define M2\_FRC\_BRY

# undef M3\_FRC\_BRY

# define T\_FRC\_BRY

# endif

# undef SEDIMENT

# define MUSTANG

# ifdef SEDIMENT

# define SUSPLOAD

# undef BEDLOAD

# endif

# ifdef MUSTANG

# define key\_sand2D

# undef key\_MUSTANG\_V2

# endif

# define NO\_FRCFILE

# undef ZETA\_DRY\_IO

# undef RVTK\_DEBUG

#elif defined ESTUARY  
/\*  
! ESTUARY Example  
! ======= =======  
\*/

# undef OPENMP

# undef MPI

# undef NONLIN\_EOS

# define NEW\_S\_COORD

# define SALINITY

# define UV\_ADV

# define TS\_HADV\_WENO5

# define TS\_VADV\_WENO5

# define UV\_HADV\_WENO5

# define UV\_VADV\_WENO5

# define UV\_COR

# define SOLVE3D

# define UV\_VIS2

# define GLS\_MIXING

# define ANA\_INITIAL

# define WET\_DRY

# define TS\_DIF2

# define SPONGE

# define ANA\_GRID

# define ANA\_INITIAL

# define ANA\_SMFLUX

# define ANA\_SRFLUX

# define ANA\_STFLUX

# define ANA\_SSFLUX

# define ANA\_BTFLUX

# define ANA\_BSFLUX

# define OBC\_WEST

# define FRC\_BRY

# ifdef FRC\_BRY

# define ANA\_BRY

# define Z\_FRC\_BRY

# define OBC\_M2CHARACT

# define OBC\_REDUCED\_PHYSICS

# define M2\_FRC\_BRY

# undef M3\_FRC\_BRY

# define T\_FRC\_BRY

# endif

# undef SEDIMENT

# define MUSTANG

# ifdef SEDIMENT

# define SUSPLOAD

# undef BEDLOAD

# endif

# ifdef MUSTANG

# define key\_sand2D

# undef key\_MUSTANG\_V2

# endif

# define PSOURCE

# define ANA\_PSOURCE

# define MASKING

# define NO\_FRCFILE

# undef ZETA\_DRY\_IO

# undef RVTK\_DEBUG

#endif /\* END OF CONFIGURATION CHOICE \*/

#include “cppdefs\_dev.h”  
#include “set\_global\_definitions.h”

---

<div class="post-metadata">

**Author:** ![sglUSP](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/sglusp/32/264_2.png) [@sglUSP](https://forum.croco-ocean.org/u/sglUSP)\
**Post date:** [August 14, 2023, 1:58pm UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417/5 "2023-08-14T13:58:31Z")

</div>

Hello, What was the final solution for this issue? I am currently facing the same problem.

---

<div class="post-metadata">

**Author:** ![IMRAN5379](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/i/58f4c7/32.png) [@IMRAN5379](https://forum.croco-ocean.org/u/IMRAN5379)\
**Post date:** [August 14, 2023, 2:14pm UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417/6 "2023-08-14T14:14:22Z")

</div>

there was the problem of netcdf4 libraries, gfortran and their correct path in Ubuntu Linux system. after successful installation of netcdf4 libraries I did not get error and jobcomp compiled successfully.

---

<div class="post-metadata">

**Author:** ![sglUSP](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/sglusp/32/264_2.png) [@sglUSP](https://forum.croco-ocean.org/u/sglUSP)\
**Post date:** [August 14, 2023, 2:26pm UTC](https://forum.croco-ocean.org/t/why-i-am-getting-such-error-when-compiling-using-jobcomp/417/7 "2023-08-14T14:26:56Z")

</div>

Thanks I’ll check
