Skip to content

Instantly share code, notes, and snippets.

@IgorBaratta
Last active August 1, 2019 04:37
Show Gist options
  • Select an option

  • Save IgorBaratta/c54c6dcdd9e5da95d2340f575674d508 to your computer and use it in GitHub Desktop.

Select an option

Save IgorBaratta/c54c6dcdd9e5da95d2340f575674d508 to your computer and use it in GitHub Desktop.
Shell Script to configure the CSD3 enviroments for running Dolfin (with Kahip)
#!/bin/sh
# Shell Script to configure the CSD3 enviroments for running Dolfin
# This script assumes that dolfinx is already installed.
# Set SPACK root directories
SPACK_ROOT=/home/hpcbara1/src/spack
# Reset module enviroment and load only slurm and the compiler
module purge
module load slurm # Load Slurm
module load gcc-7.2.0-gcc-4.8.5-pqn7o2k # Load compiler
# Activate spack shell support
source ${SPACK_ROOT}/share/spack/setup-env.sh
# Load the minimum set of packages
spack load [email protected]
spack load [email protected]
spack load petsc@develop
spack load [email protected]
spack load dolfinx@develop
# Set system C and C++ compiler
CC=gcc
CXX=g++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment