Compile FVCOM 3.1.6 serial on Scientific Linux 6.2

Table of Contents

Create directories manually under ./FVCOM_source/libs/

[cc]

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

[/cc]

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

[cc]PACKAGES = julian[/cc]

Enter ./FVCOM_source/libs and make

[cc] $ make[/cc]

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.

[cc]

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

[/cc]

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

[cc]$ make[/cc]

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.

[cc] $ ./fvcom --casename=tst[/cc]

Compile FVCOM 3.1.6 serial on Scientific Linux 6.2” に対して1件のコメントがあります。

コメントは受け付けていません。