Benchmarking: FVCOM
Revision as of 14:46, 14 July 2015 by K mouza (talk | contribs) (→Compile and Install HDF5 library)
Compile and Install HDF5 library
wget https://www.hdfgroup.org/HDF5/release/obtainsrc.html
tar xzf hdf5-1.8.15-patch1.tar.gz
cd hdf5-1.8.15-patch1
CC=mpicc FC=mpif90 ./configure --prefix=/home/k_mouza/hdf5-mvapich-intel --enable-fortran --enable-parallel
make -j10
make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/k_mouza/hdf5/lib/
export PATH=$PATH:/home/k_mouza/hdf5/bin/Compile and install netCDF library
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.1.tar.gz
tar xzf netcdf-4.3.3.1.tar.gz
cd netcdf-4.3.3.1
CC=mpicc FC=mpif90 CPPFLAGS=-I/home/k_mouza/libraries/hdf5-mvapich-intel/include/ LDFLAGS=-L/home/k_mouza/libraries/hdf5-mvapich-intel/lib/ ./configure --prefix=/home/k_mouza/libraries/netcdf_C_4.3-mvapich-intel
make -j10
make install
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.4.2.tar.gz
tar xzf netcdf-fortran-4.4.2.tar.gz
cd netcdf-fortran-4.4.2
CC=mpicc FC=mpif90 FCFLAGS=-I/home/k_mouza/libraries/hdf5-mvapich-intel/include/ LDFLAGS=-L/home/k_mouza/libraries/hdf5-mvapich-intel/lib/ CPPFLAGS=-I/home/k_mouza/libraries/netcdf_C_4.3-mvapich-intel/include/ ./configure --prefix=/home/k_mouza/libraries/netcdf-fortran-4.4-mvapich-intel
make -j10
make installCompiling GOTM
cd FVCOM/src/gotm-4.0.0/src
vim Rules.make # SEE BELOW FOR CHANGES
makeChange these lines in the Rules.make file:
FORTRAN_COMPILER=IFORT
GOTMDIR=/home/k_mouza/PML-Benchmarks/Sample-Code/FVCOM/src/gotm-4.0.0
...
NETCDFINC=/home/k_mouza/netcdf-fortran-4.4/include
NETCDFLIBDIR=/home/k_mouza/netcdf-fortran-4.4/lib
...
NETCDFLIB = -lnetcdff -lnetcdf
...
LDFLAGS += -L$(NETCDFLIBDIR) -L/home/k_mouza/netcdf-C-4.3/lib/