Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

Commit 7508f9e3 authored by Pierre Cazenave's avatar Pierre Cazenave

Update the examples with those from the FVCOM v4.0 release.

parent 62f71657
Pipeline #723 skipped
......@@ -58,7 +58,8 @@
INSTALLDIR = $(TOPDIR)/libs/install
#===========================================================================
# PREPROCESSOR OPTIONS FOR CPP
DEF_FLAGS = -P -C -traditional
# DEF_FLAGS = -P -C -traditional
DEF_FLAGS = -P -traditional
#===========================================================================
#
####################### MEDM ENVIRONMENT #####################################
......@@ -93,7 +94,8 @@ dashL= $(empty) -L
# SET PATH TO LIBRARIES WITH IOLIBS
# SET PATH TO INCLUDE FILES (netcdf.mod) WITH IOINCS
#--------------------------------------------------------------------------
IOLIBS = -lnetcdf #-L/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/lib -lnetcdf
IOLIBS = -lnetcdff -lnetcdf #-lhdf5_hl -lhdf5 -lz -lcurl -lm
# IOLIBS = -lnetcdf #-L/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/lib -lnetcdf
IOINCS = #-I/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/include
# IOLIBS = -L/usr/local/install/netcdf/gcc_ifort/3.6.2/lib -lnetcdf
# IOINCS = -I/usr/local/install/netcdf/gcc_ifort/3.6.2/include
......@@ -245,7 +247,7 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# FLAG_11 = -DGOTM
# GOTMLIB = -L../GOTM_source -lturbulence -lutil -lmeanflow
# GOTMLIB = -L../GOTM_source -lturbulence -lutil #-lmeanflow
# GOTMINCS = -I../GOTM_source
#--------------------------------------------------------------------------
......@@ -315,11 +317,24 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# SUSPENDED SEDIMENT MODEL: UNCOMMENT TO INCLUDE MODEL
# ORIG : the sediment transport model developed by Geoffey Cowles in v3.1-v3.2
# CSTMS: Community Sediment Transport Modeling System with cohesive model
# DELFT: Sediment modeling system as Delft Flow (not included)
#
# note: only one model should be chosen for modeling.
#
# Utilities:
# OFFLINE_SEDIMENT : run sediment with offline hydrodynamic forcing
# FLUID_MUD : activate the 2-D fluid mud at bed-water interface
#--------------------------------------------------------------------------
# FLAG_21 = -DSEDIMENT
# FLAG_211 = -DORIG_SED
# FLAG_211 = -DCSTMS_SED
#
# FLAG_22 = -DOFFLINE_SEDIMENT
# FLAG_43 = -DFLUID_MUD
#
#--------------------------------------------------------------------------
# KALMAN FILTERS
#--------------------------------------------------------------------------
......@@ -345,22 +360,31 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# GENERAL BIOLOGICAL MODEL: UNCOMMENT TO INCLUDE MODEL
#--------------------------------------------------------------------------
# FLAG_25 = -DBioGen
# BIOLIB = -L$(TOPDIR)/BIO_source -lbiomodule
# BIOINCS = -I$(TOPDIR)/BIO_source/
# FLAG_25 = -DBioGen
# FLAG_251 = -DOFFLINE_BIOLOGY
# BIOLIB = -L$(TOPDIR)/BIO_source -lbiomodule
# BIOINCS = -I$(TOPDIR)/BIO_source
#--------------------------------------------------------------------------
# Dynamic/Thermodynamic Ice
#--------------------------------------------------------------------------
# NOTE: Must use -DSPHERICAL and -DHEAT_FLUX ----- only for old version v2.7
# NOTE: Must use -DSPHERICAL and -DHEAT_FLUX ----- this note only for old version v2.7
# ICE_EMBEDDING must with SEMI_IMPLICIT
# FLAG_26 = -DICE
# FLAG_261 = -DICE_EMBEDDING
#--------------------------------------------------------------------------
# CALCULATE THE NET HEAT FLUX IN MODEL
# CALCULATE THE NET HEAT FLUX IN MODEL (THREE CHOICES):
# 1. CALCULATE THE NET HEAT FLUX USING COARE26Z
# 2. CALCULATE THE NET HEAT FLUX USING COARE26Z for Great Lake
# 3. CALCULATE THE NET HEAT FLUX USING SOLAR HEATING MODULE
#--------------------------------------------------------------------------
# FLAG_27 = -DHEATING_CALCULATED
# FLAG_27 = -DHEATING_CALCULATED_GL
# FLAG_27 = -DHEATING_SOLAR
#--------------------------------------------------------------------------
# AIR_PRESSURE FROM SURFACE FORCING
......@@ -432,7 +456,13 @@ dashL= $(empty) -L
# PETSC Version
# If your PETSc is 2.3.2 or older, uncomment this flag
#--------------------------------------------------------------------------
FLAG_41 = -DOLD_PETSC
# FLAG_41 = -DOLD_PETSC
#--------------------------------------------------------------------------
# SPECIAL PARTITION
# This flag can make sure the identical repeat run for same amount of CPUs
#--------------------------------------------------------------------------
# FLAG_42 = -DPARTITION_SPECIAL
#--------------------------------------------------------------------------
# DEVELOPMENT FLAGS
......@@ -507,7 +537,7 @@ dashL= $(empty) -L
CXX = mpicxx
CFLAGS = -O3
FC = mpif90
# DEBFLGS = -check all
# DEBFLGS = -check all -traceback
# Use 'OPT = -O0 -g' for fast compile to test the make
# Use 'OPT = -xP' for fast run on em64t (Hydra and Guppy)
# Use 'OPT = -xN' for fast run on ia32 (Salmon and Minke)
......@@ -582,8 +612,9 @@ dashL= $(empty) -L
$(FLAG_31) $(FLAG_32) $(FLAG_33) $(FLAG_34) \
$(FLAG_35) $(FLAG_36) $(FLAG_37) $(FLAG_38) \
$(FLAG_39) $(FLAG_40) $(FLAG_41) $(FLAG_42) \
$(FLAG_LAM)\
$(FLAG_101) $(FLAG_102) $(FLAG_103) $(FLAG_104) $(FLAG_105)
$(FLAG_43) $(FLAG_LAM)\
$(FLAG_101) $(FLAG_102) $(FLAG_103) $(FLAG_104) $(FLAG_105)\
$(FLAG_211) $(FLAG_212) $(FLAG_213) $(FLAG_251) $(FLAG_261)
#--------------------------------------------------------------------------
# Libraries
#--------------------------------------------------------------------------
......
......@@ -214,7 +214,9 @@
ICE_AIR_TEMP = 0.0000000E+00,
ICE_SPEC_HUMIDITY = 0.0000000E+00,
ICE_SHORTWAVE = 0.0000000E+00,
ICE_CLOUD_COVER = 0.0000000E+00
ICE_LONGWAVE_TYPE = 'PW',
ICE_CLOUD_COVER = 0.0000000E+00,
HIGH_LATITUDE_WAVE = F
/
&NML_PROBES
PROBES_ON = F,
......
......@@ -58,7 +58,8 @@
INSTALLDIR = $(TOPDIR)/libs/install
#===========================================================================
# PREPROCESSOR OPTIONS FOR CPP
DEF_FLAGS = -P -C -traditional
# DEF_FLAGS = -P -C -traditional
DEF_FLAGS = -P -traditional
#===========================================================================
#
####################### MEDM ENVIRONMENT #####################################
......@@ -93,7 +94,8 @@ dashL= $(empty) -L
# SET PATH TO LIBRARIES WITH IOLIBS
# SET PATH TO INCLUDE FILES (netcdf.mod) WITH IOINCS
#--------------------------------------------------------------------------
IOLIBS = -lnetcdf #-L/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/lib -lnetcdf
IOLIBS = -lnetcdff -lnetcdf #-lhdf5_hl -lhdf5 -lz -lcurl -lm
# IOLIBS = -lnetcdf #-L/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/lib -lnetcdf
IOINCS = #-I/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/include
# IOLIBS = -L/usr/local/install/netcdf/gcc_ifort/3.6.2/lib -lnetcdf
# IOINCS = -I/usr/local/install/netcdf/gcc_ifort/3.6.2/include
......@@ -245,7 +247,7 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# FLAG_11 = -DGOTM
# GOTMLIB = -L../GOTM_source -lturbulence -lutil -lmeanflow
# GOTMLIB = -L../GOTM_source -lturbulence -lutil #-lmeanflow
# GOTMINCS = -I../GOTM_source
#--------------------------------------------------------------------------
......@@ -315,11 +317,24 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# SUSPENDED SEDIMENT MODEL: UNCOMMENT TO INCLUDE MODEL
# ORIG : the sediment transport model developed by Geoffey Cowles in v3.1-v3.2
# CSTMS: Community Sediment Transport Modeling System with cohesive model
# DELFT: Sediment modeling system as Delft Flow (not included)
#
# note: only one model should be chosen for modeling.
#
# Utilities:
# OFFLINE_SEDIMENT : run sediment with offline hydrodynamic forcing
# FLUID_MUD : activate the 2-D fluid mud at bed-water interface
#--------------------------------------------------------------------------
FLAG_21 = -DSEDIMENT
# FLAG_21 = -DSEDIMENT
# FLAG_211 = -DORIG_SED
# FLAG_211 = -DCSTMS_SED
#
# FLAG_22 = -DOFFLINE_SEDIMENT
# FLAG_43 = -DFLUID_MUD
#
#--------------------------------------------------------------------------
# KALMAN FILTERS
#--------------------------------------------------------------------------
......@@ -345,22 +360,31 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# GENERAL BIOLOGICAL MODEL: UNCOMMENT TO INCLUDE MODEL
#--------------------------------------------------------------------------
# FLAG_25 = -DBioGen
# BIOLIB = -L$(TOPDIR)/BIO_source -lbiomodule
# BIOINCS = -I$(TOPDIR)/BIO_source/
# FLAG_25 = -DBioGen
# FLAG_251 = -DOFFLINE_BIOLOGY
# BIOLIB = -L$(TOPDIR)/BIO_source -lbiomodule
# BIOINCS = -I$(TOPDIR)/BIO_source
#--------------------------------------------------------------------------
# Dynamic/Thermodynamic Ice
#--------------------------------------------------------------------------
# NOTE: Must use -DSPHERICAL and -DHEAT_FLUX ----- only for old version v2.7
# NOTE: Must use -DSPHERICAL and -DHEAT_FLUX ----- this note only for old version v2.7
# ICE_EMBEDDING must with SEMI_IMPLICIT
# FLAG_26 = -DICE
# FLAG_261 = -DICE_EMBEDDING
#--------------------------------------------------------------------------
# CALCULATE THE NET HEAT FLUX IN MODEL
# CALCULATE THE NET HEAT FLUX IN MODEL (THREE CHOICES):
# 1. CALCULATE THE NET HEAT FLUX USING COARE26Z
# 2. CALCULATE THE NET HEAT FLUX USING COARE26Z for Great Lake
# 3. CALCULATE THE NET HEAT FLUX USING SOLAR HEATING MODULE
#--------------------------------------------------------------------------
# FLAG_27 = -DHEATING_CALCULATED
# FLAG_27 = -DHEATING_CALCULATED_GL
# FLAG_27 = -DHEATING_SOLAR
#--------------------------------------------------------------------------
# AIR_PRESSURE FROM SURFACE FORCING
......@@ -432,7 +456,13 @@ dashL= $(empty) -L
# PETSC Version
# If your PETSc is 2.3.2 or older, uncomment this flag
#--------------------------------------------------------------------------
FLAG_41 = -DOLD_PETSC
# FLAG_41 = -DOLD_PETSC
#--------------------------------------------------------------------------
# SPECIAL PARTITION
# This flag can make sure the identical repeat run for same amount of CPUs
#--------------------------------------------------------------------------
# FLAG_42 = -DPARTITION_SPECIAL
#--------------------------------------------------------------------------
# DEVELOPMENT FLAGS
......@@ -507,7 +537,7 @@ dashL= $(empty) -L
CXX = mpicxx
CFLAGS = -O3
FC = mpif90
# DEBFLGS = -check all
# DEBFLGS = -check all -traceback
# Use 'OPT = -O0 -g' for fast compile to test the make
# Use 'OPT = -xP' for fast run on em64t (Hydra and Guppy)
# Use 'OPT = -xN' for fast run on ia32 (Salmon and Minke)
......@@ -582,8 +612,9 @@ dashL= $(empty) -L
$(FLAG_31) $(FLAG_32) $(FLAG_33) $(FLAG_34) \
$(FLAG_35) $(FLAG_36) $(FLAG_37) $(FLAG_38) \
$(FLAG_39) $(FLAG_40) $(FLAG_41) $(FLAG_42) \
$(FLAG_LAM)\
$(FLAG_101) $(FLAG_102) $(FLAG_103) $(FLAG_104) $(FLAG_105)
$(FLAG_43) $(FLAG_LAM)\
$(FLAG_101) $(FLAG_102) $(FLAG_103) $(FLAG_104) $(FLAG_105)\
$(FLAG_211) $(FLAG_212) $(FLAG_213) $(FLAG_251) $(FLAG_261)
#--------------------------------------------------------------------------
# Libraries
#--------------------------------------------------------------------------
......
......@@ -222,7 +222,8 @@
SEDIMENT_PARAMETER_TYPE = 'constant' ,
BEDFLAG_TYPE = 'constant' ,
ICE_MODEL = F,
ICING_MODEL =F
ICING_MODEL =F,
HIGH_LATITUDE_WAVE = F
/
&NML_PROBES
......@@ -287,3 +288,15 @@ NCNEST_NODE_FILES= 'testnodes.dat'
NESTING_BLOCKSIZE_WAVE = -1,
NESTING_FILE_NAME_WAVE = inlet_nesting_wave.nc
/
&NML_WAVE_SPARSE_TIMESERIES
OUT_WAVE_SPARSE_TIMESERIES_ON = F,
SPARSE_DISTANCE = 1000.000 ,
OUT_WIND_VELOCITY_SPARSE = F,
OUT_SIG_WAVE_HEIGHT_SPARSE = F,
OUT_REL_PEAK_PERIOD_SPARSE = F,
OUT_WAVE_DIRECTION_SPARSE = F,
OUT_ENERGY_SPECTRUM_SPARSE = F,
OUT_WAVE_PARTITION_SPARSE = F,
OUT_INTERVAL_SPARSE = 'seconds=3600.0'
/
......@@ -58,7 +58,8 @@
INSTALLDIR = $(TOPDIR)/libs/install
#===========================================================================
# PREPROCESSOR OPTIONS FOR CPP
DEF_FLAGS = -P -C -traditional
# DEF_FLAGS = -P -C -traditional
DEF_FLAGS = -P -traditional
#===========================================================================
#
####################### MEDM ENVIRONMENT #####################################
......@@ -93,7 +94,8 @@ dashL= $(empty) -L
# SET PATH TO LIBRARIES WITH IOLIBS
# SET PATH TO INCLUDE FILES (netcdf.mod) WITH IOINCS
#--------------------------------------------------------------------------
IOLIBS = -lnetcdf #-L/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/lib -lnetcdf
IOLIBS = -lnetcdff -lnetcdf #-lhdf5_hl -lhdf5 -lz -lcurl -lm
# IOLIBS = -lnetcdf #-L/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/lib -lnetcdf
IOINCS = #-I/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/include
# IOLIBS = -L/usr/local/install/netcdf/gcc_ifort/3.6.2/lib -lnetcdf
# IOINCS = -I/usr/local/install/netcdf/gcc_ifort/3.6.2/include
......@@ -245,7 +247,7 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# FLAG_11 = -DGOTM
# GOTMLIB = -L../GOTM_source -lturbulence -lutil -lmeanflow
# GOTMLIB = -L../GOTM_source -lturbulence -lutil #-lmeanflow
# GOTMINCS = -I../GOTM_source
#--------------------------------------------------------------------------
......@@ -315,11 +317,24 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# SUSPENDED SEDIMENT MODEL: UNCOMMENT TO INCLUDE MODEL
# ORIG : the sediment transport model developed by Geoffey Cowles in v3.1-v3.2
# CSTMS: Community Sediment Transport Modeling System with cohesive model
# DELFT: Sediment modeling system as Delft Flow (not included)
#
# note: only one model should be chosen for modeling.
#
# Utilities:
# OFFLINE_SEDIMENT : run sediment with offline hydrodynamic forcing
# FLUID_MUD : activate the 2-D fluid mud at bed-water interface
#--------------------------------------------------------------------------
# FLAG_21 = -DSEDIMENT
# FLAG_211 = -DORIG_SED
# FLAG_211 = -DCSTMS_SED
#
# FLAG_22 = -DOFFLINE_SEDIMENT
# FLAG_43 = -DFLUID_MUD
#
#--------------------------------------------------------------------------
# KALMAN FILTERS
#--------------------------------------------------------------------------
......@@ -345,22 +360,31 @@ dashL= $(empty) -L
#--------------------------------------------------------------------------
# GENERAL BIOLOGICAL MODEL: UNCOMMENT TO INCLUDE MODEL
#--------------------------------------------------------------------------
# FLAG_25 = -DBioGen
# BIOLIB = -L$(TOPDIR)/BIO_source -lbiomodule
# BIOINCS = -I$(TOPDIR)/BIO_source/
# FLAG_25 = -DBioGen
# FLAG_251 = -DOFFLINE_BIOLOGY
# BIOLIB = -L$(TOPDIR)/BIO_source -lbiomodule
# BIOINCS = -I$(TOPDIR)/BIO_source
#--------------------------------------------------------------------------
# Dynamic/Thermodynamic Ice
#--------------------------------------------------------------------------
# NOTE: Must use -DSPHERICAL and -DHEAT_FLUX ----- only for old version v2.7
# NOTE: Must use -DSPHERICAL and -DHEAT_FLUX ----- this note only for old version v2.7
# ICE_EMBEDDING must with SEMI_IMPLICIT
# FLAG_26 = -DICE
# FLAG_261 = -DICE_EMBEDDING
#--------------------------------------------------------------------------
# CALCULATE THE NET HEAT FLUX IN MODEL
# CALCULATE THE NET HEAT FLUX IN MODEL (THREE CHOICES):
# 1. CALCULATE THE NET HEAT FLUX USING COARE26Z
# 2. CALCULATE THE NET HEAT FLUX USING COARE26Z for Great Lake
# 3. CALCULATE THE NET HEAT FLUX USING SOLAR HEATING MODULE
#--------------------------------------------------------------------------
# FLAG_27 = -DHEATING_CALCULATED
# FLAG_27 = -DHEATING_CALCULATED_GL
# FLAG_27 = -DHEATING_SOLAR
#--------------------------------------------------------------------------
# AIR_PRESSURE FROM SURFACE FORCING
......@@ -432,7 +456,13 @@ dashL= $(empty) -L
# PETSC Version
# If your PETSc is 2.3.2 or older, uncomment this flag
#--------------------------------------------------------------------------
FLAG_41 = -DOLD_PETSC
# FLAG_41 = -DOLD_PETSC
#--------------------------------------------------------------------------
# SPECIAL PARTITION
# This flag can make sure the identical repeat run for same amount of CPUs
#--------------------------------------------------------------------------
# FLAG_42 = -DPARTITION_SPECIAL
#--------------------------------------------------------------------------
# DEVELOPMENT FLAGS
......@@ -507,7 +537,7 @@ dashL= $(empty) -L
CXX = mpicxx
CFLAGS = -O3
FC = mpif90
# DEBFLGS = -check all
# DEBFLGS = -check all -traceback
# Use 'OPT = -O0 -g' for fast compile to test the make
# Use 'OPT = -xP' for fast run on em64t (Hydra and Guppy)
# Use 'OPT = -xN' for fast run on ia32 (Salmon and Minke)
......@@ -582,8 +612,9 @@ dashL= $(empty) -L
$(FLAG_31) $(FLAG_32) $(FLAG_33) $(FLAG_34) \
$(FLAG_35) $(FLAG_36) $(FLAG_37) $(FLAG_38) \
$(FLAG_39) $(FLAG_40) $(FLAG_41) $(FLAG_42) \
$(FLAG_LAM)\
$(FLAG_101) $(FLAG_102) $(FLAG_103) $(FLAG_104) $(FLAG_105)
$(FLAG_43) $(FLAG_LAM)\
$(FLAG_101) $(FLAG_102) $(FLAG_103) $(FLAG_104) $(FLAG_105)\
$(FLAG_211) $(FLAG_212) $(FLAG_213) $(FLAG_251) $(FLAG_261)
#--------------------------------------------------------------------------
# Libraries
#--------------------------------------------------------------------------
......
......@@ -214,7 +214,9 @@
ICE_AIR_TEMP = 0.0000000E+00,
ICE_SPEC_HUMIDITY = 0.0000000E+00,
ICE_SHORTWAVE = 0.0000000E+00,
ICE_CLOUD_COVER = 0.0000000E+00
ICE_LONGWAVE_TYPE = 'PW',
ICE_CLOUD_COVER = 0.0000000E+00,
HIGH_LATITUDE_WAVE = F
/
&NML_PROBES
PROBES_ON = F,
......
#/===========================================================================/
# Copyright (c) 2007, The University of Massachusetts Dartmouth
# Produced at the School of Marine Science & Technology
# Marine Ecosystem Dynamics Modeling group
# All rights reserved.
#
# FVCOM has been developed by the joint UMASSD-WHOI research team. For
# details of authorship and attribution of credit please see the FVCOM
# technical manual or contact the MEDM group.
#
#
# This file is part of FVCOM. For details, see http://fvcom.smast.umassd.edu
# The full copyright notice is contained in the file COPYRIGHT located in the
# root directory of the FVCOM code. This original header must be maintained
# in all distributed versions.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.
#
#/---------------------------------------------------------------------------/
# CVS VERSION INFORMATION
# $Id$
# $Name$
# $Revision$
#/===========================================================================/
#==========================================================================
#
# WELCOME TO FVCOM
#
# TO BUILD FVCOM, PLEASE SET THE FOLLOWING IN THIS FILE:
# TOPDIR - the directory this make.inc file is in
# LIBDIR - the directroy where libraries are installed
# INCIDR - the directroy where include files are installed
#
# CHOOSE YOUR MODEL OPTIONAS - The Def Flags!
#
# CHOOSE A COMPILER FROM THE LIST OR CREATE YOUR OWN
#
# You can also use the makefile to build and install some of the libraries
# used by fvcom. Set the INSTALLDIR and choose the 'LOCAL INSTALL' option
# below. Select an non-mpi compiler from the list and run 'make libs_ext'
#
# Good Luck!
#
#========== TOPDIR ========================================================
# TOPDIR is the directory in which this make file and the fvcom source reside
TOPDIR =
#EXAMPLE
# TOPDIR = /home/user/cchen/FVCOM_source
# TOPDIR must be set!
#========== INSTALLDIR =====================================================
# INSTALLDIR is the directory where you wish to install external libraries
# The default is in the $(TOPDIR)/libs/install, but you can choose...
INSTALLDIR = $(TOPDIR)/libs/install
#===========================================================================
# PREPROCESSOR OPTIONS FOR CPP
# DEF_FLAGS = -P -C -traditional
DEF_FLAGS = -P -traditional
#===========================================================================
#
####################### MEDM ENVIRONMENT #####################################
# Use the environmental variables, LIBPATH and INCLUDEPATH, set by MODULE
# to find the packages used by this build.
colon=:
empty=
dashI= $(empty) -I
dashL= $(empty) -L
# ### UNCOMMENT HERE!
LIBDIR = -L$(subst $(colon),$(dashL),$(LIBPATH))
INCDIR = -I$(subst $(colon),$(dashI),$(INCLUDEPATH))
###########################################################################
# LOCAL INSTAL
# LIBDIR = -L$(INSTALLDIR)/lib
# INCDIR = -I$(INSTALLDIR)/include
#--------------------------------------------------------------------------
# STANDARD LIBRARIES FOR DATA AND TIME IN fVCOM:
#
DTLIBS = -ljulian
DTINCS =
#
#--------------------------------------------------------------------------
# NETCDF OUTPUT NETCDF IS NOW REQUIRED TO COMPILE FVCOM
# DUMP OUTPUT INTO NETCDF FILES (yes/no)
# REQUIRES SYSTEM DEPENDENT NETCDF LIBRARIES
# COMPILED WITH SAME F90 COMPILER
# SET PATH TO LIBRARIES WITH IOLIBS
# SET PATH TO INCLUDE FILES (netcdf.mod) WITH IOINCS
#--------------------------------------------------------------------------
IOLIBS = -lnetcdff -lnetcdf #-lhdf5_hl -lhdf5 -lz -lcurl -lm
# IOLIBS = -lnetcdf #-L/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/lib -lnetcdf
IOINCS = #-I/hosts/mao/usr/medm/install/netcdf/3.6.3/em64t/include
# IOLIBS = -L/usr/local/install/netcdf/gcc_ifort/3.6.2/lib -lnetcdf
# IOINCS = -I/usr/local/install/netcdf/gcc_ifort/3.6.2/include
#--------------------------------------------------------------------------
#==========================================================================
# BEGIN USER DEFINITION SECTION
#==========================================================================
# SELECT MODEL OPTIONS
# SELECT FROM THE FOLLOWING OPTIONS BEFORE COMPILING CODE
# SELECT/UNSELECT BY COMMENTING/UNCOMMENTING LINE (#)
# CODE MUST BE CLEANED (with "make clean") AND
# RECOMPILED IF NEW SET OF OPTIONS IS DESIRED
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# PRECISION DEFAULT PRECISION: SINGLE
# UNCOMMENT TO SELECT DOUBLE PRECISION
#--------------------------------------------------------------------------
# FLAG_1 = -DDOUBLE_PRECISION
## SINGLE PRECISION OUTPUT FOR VISIT
# FLAG_1 = -DDOUBLE_PRECISION -DSINGLE_OUTPUT
#--------------------------------------------------------------------------
# SPHERICAL SELECT SPHERICAL COORDINATES FOR INTEGRATION
# DEFAULT: CARTESIAN
# UNCOMMENT TO SELECT SPHERICAL COORDINATES
#--------------------------------------------------------------------------
# FLAG_2 = -DSPHERICAL
#--------------------------------------------------------------------------
# FLOODYING/DRYING INCLUDE WET/DRY TREATMENT OF DOMAIN
# CAN BE ACTIVATED/DEACTIVATED AT RUN TIME WITH
# INPUT FILE CONTROL. (SEE exa_run.dat) FILE
# DEFAULT: NO FLOODYING/DRYING INCLUDED
# UNCOMMENT TO INCLUDE FLOODYING/DRYING
#--------------------------------------------------------------------------
# FLAG_3 = -DWET_DRY
#--------------------------------------------------------------------------
# MULTI_PROCESSOR INCLUDES PARALLELIZATION WITH MPI
# REQUIRES LINKING MPI LIBRARIES OR COMPILING
# WITH A PRELINKED SCRIPT (mpif90/mpf90/etc)
# DEFAULT: NO PARALLEL CAPABILITY
# UNCOMMENT TO INCLUDE MPI PARALLEL CAPABILITY
#--------------------------------------------------------------------------
FLAG_4 = -DMULTIPROCESSOR
PARLIB = -lmetis #-L/usr/local/lib -lmetis
#--------------------------------------------------------------------------
# WATER_QUALITY INCLUDE EPA WATER QUALITY MOD
# CAN BE ACTIVATED/DEACTIVATED AT RUN TIME WITH
# VARIABLE WQM_ON IN INPUT FILE
# DEFAULT: NO WATER QUALITY MODEL
# UNCOMMENT TO INCLUDE WATER QUALITY MODEL
#--------------------------------------------------------------------------
# FLAG_5 = -DWATER_QUALITY
#--------------------------------------------------------------------------
# PROJECTION A Fortran90 wrapper for the Cartographic projection
# Software, proj4.
# Proj can be obtained from:
# http://www.remotesensing.org/proj/
# Thanks to: USGS
#
# The Proj fortran bindings can be obtained from:
# http://forge.nesc.ac.uk/projects/glimmer/
# Thanks to: Magnus Hagdorn (Magnus.Hagdorn@ed.ac.uk)
#
# !! NOTE THAT THE PROJ 4 LIBRARY MUST BE IN YOUR
# LD_LIBRARY_PATH FOR DYNAMIC LOADING!!
#
#--------------------------------------------------------------------------
# FLAG_6 = -DPROJ
# PROJLIBS = -lfproj4 -lproj -lm
# PROJINCS =
#--------------------------------------------------------------------------
# DATA_ASSIMILATION INCLUDE NUDGING BASED DATA ASSIMILATION FOR
# CURRENT/TEMP/SALINITY/SST
# CAN BE ACTIVATED/DEACTIVATED AT RUN TIME WITH
# INPUT FILE CONTROL. (SEE exa_run.dat) FILE
# DEFAULT: NO DATA ASSIMILATION INCLUDED
# UNCOMMENT TO INCLUDE DATA ASSIMILATION
#--------------------------------------------------------------------------
# FLAG_7 = -DDATA_ASSIM
# include ${PETSC_DIR}/bmake/common/variables
# OILIB = -lmkl_lapack -lmkl_em64t -lguide -lpthread
# OILIB = -L/usr/local/share/Intel-Compilers/mkl/lib/em64t -lmkl_lapack -lmkl_em64t -lguide -lpthread
# For Build on em64t computer (Guppy)
# LIBDIR = $(LIBDIR) -L/usr/local/lib64
# For Build on Cluster (Typhoeus and Hydra)
# LIBDIR = $(LIBDIR) -L/usr/local/lib/em64t
# For i386 computers at SMAST (salmon and minke)
# NO NEED TO ADD ANYTHING LIBS ARE IN THE DEFAULT PATH
#--------------------------------------------------------------------------
# IN UPWIND LEAST SQUARE SCHEME:
# LIMITED_NO: NO LIMITATION
# LIMITED_1 : FIRST ORDER LIMITATION
# LIMITED_2 : SECOND ORDER LIMITATION( )
# !!!!!! ONLY ONE OF THE FLAGS BELOW CAN BE AND MUST BE CHOSEN
#--------------------------------------------------------------------------
FLAG_8 = -DLIMITED_NO
# FLAG_8 = -DLIMITED_1
# FLAG_8 = -DLIMITED_2
#--------------------------------------------------------------------------
# Semi-Implicit time stepping method
#--------------------------------------------------------------------------
# FLAG_9 = -DSEMI_IMPLICIT
# include ${PETSC_DIR}/bmake/common/variables
#---------------------------------------------------------------------------
# SOLID BOUNDARY IF GCN, NO GHOST CELL
# IF GCY1, GHOST CELL IS SYMMETRIC RELATIVE TO BOUNDARY
# CELL EDGE
# IF GCY2, GHOST CELL IS SYMMETRIC RELATIVE TO MIDDLE
# POINT OF THE BOUNDARY CELL EDGE
# !!!!!! ONLY ONE OF THE FLAGS BELOW CAN BE AND MUST BE CHOSEN
#---------------------------------------------------------------------------
FLAG_10 = -DGCN
# FLAG_10 = -DGCY1
# FLAG_10 = -DGCY2
#--------------------------------------------------------------------------
# TURBULENCE MODEL USE GOTM TURBULENCE MODEL INSTEAD OF THE ORIGINAL
# FVCOM MELLOR-YAMADA 2.5 IMPLEMENTATION
# UNCOMMENT TO USE GOTM TURBULENCE MODEL
# NOTE: You Must Build GOTM 4.x, GOTM 3.x used a different
# do_turbulence interface and will not work.
#--------------------------------------------------------------------------
# FLAG_11 = -DGOTM
# GOTMLIB = -L../GOTM_source -lturbulence -lutil #-lmeanflow
# GOTMINCS = -I../GOTM_source
#--------------------------------------------------------------------------
# EQUILIBRIUM TIDE
#--------------------------------------------------------------------------
# FLAG_12 = -DEQUI_TIDE