Skip to content

Commit

Permalink
Add definition for the compilation environment on seneca.
Browse files Browse the repository at this point in the history
  • Loading branch information
MET Tools Test Account committed Jul 29, 2021
1 parent 3e33a4e commit 543a736
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions scripts/environment/development.seneca
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Define the development environment for NCAR project machine seneca
# Based on settings in /usr/local/src/met/README.snat

# Top-level MET project directory
MET_PROJ_DIR=/d1/projects/MET

# Variables required to build MET
export MET_DEVELOPMENT=true
export MET_DST=/usr/local
export MET_NETCDF=${MET_DST}/netcdf-4.7.0/gcc-8.3.0
export MET_HDF5=${MET_DST}/hdf5-1.8.21
export MET_HDFINC=${MET_DST}/hdf4-4.2.15/include/hdf
export MET_HDFLIB=${MET_DST}/hdf4-4.2.15/lib
export MET_HDFEOS=${MET_DST}/hdf-eos2-20v1
export MET_BUFR=${MET_DST}
export MET_GRIB2C=${MET_DST}
export MET_GSL=${MET_PROJ_DIR}/MET_releases/external_libs/gnu_8.3.0
export MET_CAIROINC=/usr/include/cairo
export MET_CAIROLIB=/usr/lib/x86_64-linux-gnu
export MET_FREETYPEINC=/usr/include/freetype2
export MET_FREETYPELIB=/usr/lib/x86_64-linux-gnu
export MET_JASPER=${MET_DST}/jasper-1.900.1

# For Python 3 in met-9.0
export MET_PYTHON=/usr/local/met-python3
export MET_PYTHON_CC="-I${MET_PYTHON}/include/python3.8"
export MET_PYTHON_LD="-L${MET_PYTHON}/lib -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm"

# -D__64BIT__ is required because we've compiled libgrib2c.a with that flag
export CFLAGS="-DUNDERSCORE -fPIC -D__64BIT__"
export CXXFLAGS=${CFLAGS}

# Set LDFLAGS to include -rpath settings when compiling MET
export LDFLAGS="-Wl,--disable-new-dtags"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${MET_DST}/lib:${MET_HDFEOS}/lib:${MET_NETCDF}/lib:${MET_DST}/zlib-1.2.11/lib:${MET_DST}/szip-2.1.1/lib"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${MET_HDFLIB}:${MET_HDF5}/lib:${MET_GSL}/lib:${MET_PYTHON}/lib:${MET_JASPER}/lib"
export LDFLAGS="${LDFLAGS} -L${MET_JASPER}/lib"

# Variables required to run MET
export MET_TEST_INPUT=${MET_PROJ_DIR}/MET_test_data/unit_test
export MET_FONT_DIR=${MET_TEST_INPUT}/fonts

# This is a cron script -- create the shell environment for this job
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:\
/usr/bin/X11:/opt/bin:${MET_NETCDF}/bin"

0 comments on commit 543a736

Please sign in to comment.