Create directories manually under ./FVCOM_source/libs/

./install/bin, ./install/lib, ./install/include

Edit PAKCAGES in ./FVCOM_source/libs/makefile. So other required packages in netcdf that should be installed separately.

PACKAGES = julian

Enter ./FVCOM_source/libs and make

 $ make

Move into ./FVCOM_source and then edit make.inc. Here I will itemize some of the settings below. Others should be edited dependent on demand.

TOPDIR = /home/teem/wind/home/cal/FVCOM/FVCOM3.1.6/FVCOM_source

# ### UNCOMMENT HERE!
# LIBDIR = -L$(subst $(colon),$(dashL),$(LIBPATH))
# INCDIR = -I$(subst $(colon),$(dashI),$(INCLUDEPATH))

###########################################################################

# LOCAL INSTAL
LIBDIR = -L$(INSTALLDIR)/lib
INCDIR = -I$(INSTALLDIR)/include

IOLIBS = -L/usr/local/netcdf-3.6.3-ifc12.1.5/lib -lnetcdf
IOINCS = -I/usr/local/netcdf-3.6.3-ifc12.1.5/include

# For a test case of "ESTUARY, " FLAG_14 should be activated.

FLAG_14 = -DRIVER_FLOAT

#--------------------------------------------------------------------------
# Intel Compiler Definitions
#--------------------------------------------------------------------------

CPP = gcc -E
COMPILER = -DIFORT
FC = ifort
CC = icc
CXX = icc
CFLAGS = -O3
DEBFLGS = #-check all
OPT = -O3 -xhost

Then, make in the directory and an executable file of “fvcom” will be created.

$ make

Executing a test case “ESTUARY.”

Copy the executable file “fvcom” into ./FVCOM3.1.6/Examples/Estuary/run/ and move into the directory. When “tst_run.nml” is used, just specify “tst” for setting the casename.

 $ ./fvcom --casename=tst