SMOKE Installation Notes

From LADCO Wiki
Revision as of 20:03, 8 December 2021 by Zac (talk | contribs) (Created page with "= 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 CC icc
setenv FC ifort
./configure --prefix /t10/apps/NETCDF//t10/apps/NETCDF/netcdf-4.6.1/Linux2_x86_64ifort_v2021.4.0 --disable-netcdf-4
make