-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from ceblanton/170.ncrc5-site-config
Add config.site and env.sh files for NCRC5 site
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#*********************************************************************** | ||
# GNU Lesser General Public License | ||
# | ||
# This file is part of the GFDL FRE NetCDF tools package (FRE-NCTools). | ||
# | ||
# FRE-NCTools is free software: you can redistribute it and/or modify it under | ||
# the terms of the GNU Lesser General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or (at | ||
# your option) any later version. | ||
# | ||
# FRE-NCTools is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
# for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public | ||
# License along with FRE-NCTools (LICENSE.md). If not, see | ||
# <http://www.gnu.org/licenses/>. | ||
#*********************************************************************** | ||
# Default site configuration for NCRC Gaea platforms | ||
# | ||
# configure options | ||
test -z "$with_mpi" && with_mpi=yes | ||
test -z "$enable_venv" && enable_venv=yes | ||
# Standard prefix location for FRE distribution | ||
test "$prefix" = NONE && prefix=/ncrc/home2/fms/local/opt/fre-nctools/${PACKAGE_VERSION}/ncrc | ||
|
||
# Compilers | ||
test -z "$CC" && CC=cc | ||
test -z "$FC" && FC=ftn | ||
|
||
# Compile/Link flags | ||
test -z "$CFLAGS" && CFLAGS="-O2" | ||
test -z "$FCFLAGS" && FCFLAGS="-O2" | ||
test -z "$LIBS" && LIBS="" | ||
test -z "$NETCDF_LIBS" && NETCDF_LIBS="" | ||
test -z "$NETCDF_LDFLAGS" && NETCDF_LDFLAGS="" | ||
test -z "$NETCDF_FCLIBS" && NETCDF_FCLIBS="" | ||
test -z "$NETCDF_FCLDFLAGS" && NETCDF_FCLDFLAGS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/sh | ||
#*********************************************************************** | ||
# GNU Lesser General Public License | ||
# | ||
# This file is part of the GFDL FRE NetCDF tools package (FRE-NCTools). | ||
# | ||
# FRE-NCTools is free software: you can redistribute it and/or modify it under | ||
# the terms of the GNU Lesser General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or (at | ||
# your option) any later version. | ||
# | ||
# FRE-NCTools is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
# for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public | ||
# License along with FRE-NCTools (LICENSE.md). If not, see | ||
# <http://www.gnu.org/licenses/>. | ||
#*********************************************************************** | ||
# | ||
# Copyright (c) 2021 - Seth Underwood (@underwoo) | ||
# | ||
# This script configures the environment using Environment modules | ||
# for building FRE-NCtools. This script can be run with the `eval` | ||
# command to modify the environment. Syntax is similar to the | ||
# syntax used in modulefiles. | ||
|
||
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
# DO NOT CHANGE THIS LINE | ||
. $( dirname $( dirname $(readlink -f $0) ) )/env_functions.sh | ||
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
module rm PrgEnv-pgi PrgEnv-intel PrgEnv-gnu PrgEnv-cray | ||
module load PrgEnv-gnu/8.3.3 | ||
module load cray-hdf5/1.12.1.3 | ||
module load cray-netcdf/4.8.1.3 | ||
module load nccmp | ||
|
||
# Add bats to PATH | ||
# Needed for testing | ||
module append-path PATH /ncrc/home2/Seth.Underwood/opt/bats/0.4.0/bin | ||
|
||
# ********************************************************************** | ||
# Set environment variablesSetup and Load the Modules | ||
# ********************************************************************** | ||
setenv MPICH_UNEX_BUFFER_SIZE 256m | ||
setenv MPICH_MAX_SHORT_MSG_SIZE 64000 | ||
setenv MPICH_PTL_UNEX_EVENTS 160k | ||
setenv KMP_STACKSIZE 2g | ||
setenv F_UFMTENDIAN big | ||
setenv NC_BLKSZ 64K | ||
|
||
# Set CONFIG_SITE to the correct config.site file for the system | ||
setenv CONFIG_SITE $( dirname $(readlink -f $0) )/config.site |