SMOKE Installation Notes

From LADCO Wiki
Revision as of 21:58, 8 December 2021 by Zac (talk | contribs) (NetCDF)
Jump to: navigation, search

Install Libraries

IOAPI

Download the latest I/O API library from the CMAS Center, untar in the desired location

Go to the source code location, copy the makefile template, and set environment variables to compile for your system (e.g., Intel fortran):

 tar xvzf 
 cd ioapi-3.2-20200828/ioapi
 cp Makefile.nocpl Makefile
 setenv BIN Linux2_x86_64ifort
 mkdir /t10/apps/IOAPI/ioapi-3.2-20200828/$BIN
 make

A couple of notes:

  • Edit the Makefile to set the installation directory BASEDIR
  • You need to manually create the output directory because this feature isn't working in the I/O API install package

NetCDF

Use netCDF C version 4.6.1 and Fortran version 4.2 (tar files available here: /t5/apps/NETCDF)

First untar and compile the C version of netCDF

tar xvzf netcdf-4.6.1.tar.gz
cd netcdf-4.6.1
setenv C_NCF_OUT /t10/apps/NETCDF/netcdf-4.6.1/Linux2_x86_64ifort_v2021.4.0
setenv CC icc
setenv FC ifort
./configure --prefix $C_NCF_OUT --disable-netcdf-4 --disable-dap
make
make install

Then compile the Fortran version of netCDF

tar xvzf netcdf-fortran-4.2.tar.gz
cd netcdf-fortran-4.2
setenv F_NCF_OUT /t10/apps/NETCDF/netcdf-fortran-4.2/Linux2_x86_64ifort_v2021.4.0
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${C_NCF_OUT}/lib
setenv CPPFLAGS -I${C_NCF_OUT}/include
setenv LDFLAGS -L${C_NCF_OUT}/lib
./configure --prefix $F_NCF_OUT
make
make install

Compile SMOKE

Download and install the source code per the instructions in the SMOKE manual