# Define the packages this platform needs
PACKAGES=(
-once:hwloc
+#once:hwloc
+once:superlu_dist
once:hdf5
once:p4est
once:trilinos
NAME=FEniCS
-VERSION=1.3.0
+VERSION=1.4.0
BUILDCHAIN=ignore
MODULEFILE_PATH=${INSTALL_PATH}/conf/modulefiles/candi/toolbox/${NAME}
-VERSION=1.3.0
+VERSION=1.4.0
NAME=dolfin-${VERSION}
SOURCE=https://bitbucket.org/fenics-project/dolfin/downloads/
PACKING=.tar.gz
-CHECKSUM=bc5b9f18ee7738b2e9e6768c7aa57c58
+CHECKSUM=b736119d524590b6bd0484f09893e018
-package_specific_setup () {
- # Let CMake picks correct VTK, follow-up of issue151
- # https://bitbucket.org/fenics-project/dolfin/issue/151
- # Applies to DOLFIN 1.3.0, not applicable to 1.3.0+.
- if [ "$VERSION" == "1.3.0" ]; then
- patch -p1 --forward < ${ORIG_DIR}/FEniCS/patches/dolfin-1.3.0-vtk.patch || true
- fi
-}
-VERSION=1.3.0
+VERSION=1.4.0
NAME=ffc-${VERSION}
SOURCE=https://bitbucket.org/fenics-project/ffc/downloads/
PACKING=.tar.gz
-CHECKSUM=d57f736ff0b756935a5ffd7c8b30247b
+CHECKSUM=cac802fbbf869911fdd82b72c51a7771
-VERSION=1.3.0
+VERSION=1.4.0
NAME=fiat-${VERSION}
SOURCE=https://bitbucket.org/fenics-project/fiat/downloads/
PACKING=.tar.gz
-CHECKSUM=e12267262b97a40fea97c0dad9804dd7
+CHECKSUM=da9c38cf394594091ec4ac2ff652e170
-VERSION=1.3.0
+VERSION=1.4.0
NAME=instant-${VERSION}
SOURCE=https://bitbucket.org/fenics-project/instant/downloads/
PACKING=.tar.gz
-CHECKSUM=5c25d2ce48ee761a7113f7a80b25327e
+CHECKSUM=e6fa58eb5df4401aac8542110dc1d220
-VERSION=0.11
+VERSION=2.1.0
NAME=ipython-${VERSION}
-SOURCE=http://archive.ipython.org/release/${VERSION}/
+SOURCE=https://github.com/ipython/ipython/releases/download/rel-${VERSION}/
PACKING=.tar.gz
+CHECKSUM=785c7b6364c6a0dd34aa4ea970cf83b9
BUILDCHAIN=python
NAME=libadjoint
-SOURCE=lp:
-PACKING=bzr
-BUILDCHAIN=custom
+SOURCE=https://bitbucket.org/dolfin-adjoint/
+PACKING=hg
+BUILDCHAIN=cmake
+CONFOPTS="-DBUILD_SHARED_LIBS:BOOL=ON"
-package_specific_build () {
- make install prefix=${INSTALL_PATH}
-}
-NAME=matplotlib-1.0.1
-SOURCE=http://sourceforge.net/projects/matplotlib/files/matplotlib/$NAME/
+VERSION=1.3.1
+NAME=matplotlib-${VERSION}
+SOURCE=http://downloads.sourceforge.net/matplotlib/
PACKING=.tar.gz
+CHECKSUM=444624ad58de05f9029b0b5811e11c17
BUILDCHAIN=python
NAME=mpfr-${VERSION}
SOURCE=http://www.mpfr.org/mpfr-3.1.2/
PACKING=.tar.bz2
-BUILDCHAIN=custom
+BUILDCHAIN=autotools
-package_specific_build () {
- ./configure --prefix=${INSTALL_PATH} --enable-shared=yes --with-gmp=${GMP_DIR}
- make -j ${PROCS}
- make install
-}
+CONFOPTS="--enable-shared=yes --with-gmp=${GMP_DIR}"
package_specific_register () {
export MPFR_DIR=${INSTALL_PATH}
-NAME=numpy-1.6.2
+NAME=numpy-1.8.1
SOURCE=http://downloads.sourceforge.net/numpy/
PACKING=.tar.gz
+CHECKSUM=be95babe263bfa3428363d6db5b64678
BUILDCHAIN=python
package_specific_setup () {
atlas_libs = lapack, blas
" > site.cfg
fi
-
- python setup.py build --fcompiler=gnu95
}
package_specific_register () {
--- /dev/null
+VERSION=3.4
+NAME=petsc4py-${VERSION}
+SOURCE=https://bitbucket.org/petsc/petsc4py/downloads/
+PACKING=.tar.gz
+CHECKSUM=f6a2914fe3c057b0bf0eac4330a071ea
+BUILDCHAIN=python
+
+package_specific_setup () {
+ patch -p1 --forward < ${ORIG_DIR}/FEniCS/patches/petsc4py-c++11.patch || true
+}
+
-NAME=scipy-0.12.0
+NAME=scipy-0.14.0
SOURCE=http://downloads.sourceforge.net/scipy/
PACKING=.tar.gz
+CHECKSUM=d7c7f4ccf8b07b08d6fe49d5cd51f85d
BUILDCHAIN=python
package_specific_setup () {
" >> site.cfg
fi
}
+
NAME=sympy-0.7.1
SOURCE=http://pypi.python.org/packages/source/s/sympy/
PACKING=.tar.gz
+CHECKSUM=3847b5ed5c1531bf3c1b849dc2337253
BUILDCHAIN=python
-D TPL_ENABLE_TBB:BOOL=OFF \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_Epetra:BOOL=ON \
+ -D Trilinos_ENABLE_EpetraExt:BOOL=ON \
+ -D Trilinos_ENABLE_Amesos:BOOL=ON \
+ -D Trilinos_ENABLE_Belos:BOOL=ON \
-D Trilinos_ENABLE_ML:BOOL=ON \
-D Trilinos_ENABLE_PyTrilinos:BOOL=ON \
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
-VERSION=1.3.0
+VERSION=1.4.0
NAME=ufl-${VERSION}
SOURCE=https://bitbucket.org/fenics-project/ufl/downloads/
PACKING=.tar.gz
-CHECKSUM=c57de98161c10bbbc0339ef2d1a4749d
+CHECKSUM=4c04628f3dd8e68bbfe7af0f4ed583eb
# once:scotch
fiat
ferari
-ufc
ufl
ffc
# syfi
PACKAGES=(
skip:FEniCS-prepare
once:mpi4py
+once:numpy
+once:scipy
+once:matplotlib
+once:ipython
+once:sympy
once:hdf5
once:boost
once:swig
# once:pastix
fiat
ferari
-ufc
ufl
ffc
# syfi
once:boost
once:pcre
once:scientificpython
+once:numpy
+once:scipy
+once:matplotlib
+once:ipython
+once:sympy
once:cgal
once:bazaar
once:scons
once:scotch
fiat
ferari
-ufc
ufl
ffc
# syfi
--- /dev/null
+# RHEL 7
+
+# This build script assumes that you have several packages already
+# installed via RHEL's yum using the following command:
+#
+# su -c 'yum install -y redhat-lsb bzr bzrtools subversion \
+# libxml2-devel gcc gcc-c++ openmpi-devel openmpi numpy swig wget \
+# atlas-devel suitesparse-devel blas-devel \
+# lapack-devel cln-devel ginac-devel python-devel cmake \
+# ScientificPython mpfr-devel armadillo-devel gmp-devel CGAL-devel \
+# cppunit-devel flex bison bzip2-devel python-ply eigen3 scotch scotch-devel \
+# hdf5 hdf5-devel vtk-devel vtk-python vtk-qt vtk-qt-python \
+# vtk-qt-tcl vtk-tcl vtk-testing vtkdata.noarch vtk \
+# netcdf-cxx netcdf-cxx-devel netcdf netcdf-devel '
+#
+# If you have multiple MPI libraries installed, make sure the
+# appropriate version is selected. For this, on a 32-bit operating
+# system, run:
+#
+# module load openmpi-i386
+#
+# or on a 64-bit operating system, run:
+#
+# module load openmpi-x86_64
+#
+# After Dorsal has completed, please make sure the following
+# environment variable is set before running any Python DOLFIN
+# programs:
+#
+# export BOOST_DIR=${INSTALL_PATH}
+#
+# Also, if you are using SELinux, you may need to disable it to run
+# DOLFIN programs.
+##
+
+# Platform specific variables
+default PETSC_ARCH=linux-gnu-cxx-opt
+default SCOTCH_ARCH=pc_linux2
+default UMFPACK_INCLUDE_DIR=/usr/include/suitesparse
+
+# Define the packages this platform needs
+PACKAGES=(
+skip:FEniCS-prepare
+once:boost
+once:pcre
+once:scientificpython
+once:numpy
+once:scipy
+once:matplotlib
+once:ipython
+once:sympy
+once:cgal
+once:bazaar
+once:scons
+once:mtl
+once:hdf5
+once:parmetis
+once:swig
+once:trilinos
+once:petsc
+once:slepc
+once:armadillo
+once:scotch
+fiat
+ferari
+ufl
+ffc
+# syfi
+viper
+instant
+dolfin
+skip:FEniCS
+)
slepc
fiat
#ferari
-ufc
ufl
ffc
instant
"Schrödinger’s Cat"*) echo fedora19;;
Heisenbug*) echo fedora20;;
esac
+ elif [ -f /etc/redhat-release ]
+ then
+ local RHELNAME=`gawk '{if (match($0,/\((.*)\)/,f)) print f[1]}' /etc/redhat-release`
+ case ${RHELNAME} in
+ "Tikanga"*) echo rhel5;;
+ "Santiago"*) echo rhel6;;
+ "Maipo"*) echo rhel7;;
+ esac
elif [ -x /usr/bin/sw_vers ]
then
local MACOSVER=$(sw_vers -productVersion)
--- /dev/null
+# RHEL 7
+
+# This build script assumes that you have several packages already
+# installed via RHEL's yum using the following command:
+#
+# su -c 'yum install -y svn git wget \
+# @development-tools gcc-c++ cmake \
+# blas blas-devel lapack lapack-devel \
+# doxygen graphviz graphviz-devel qt-devel '
+#
+# ARPACK: arpack arpack-devel
+# METIS: metis metis-devel
+#
+##
+
+#
+# Define the packages this platform needs
+PACKAGES=(
+once:hdf5
+once:p4est
+once:trilinos
+once:petsc
+once:slepc
+dealii
+)
--- /dev/null
+# RHEL 7
+
+# This build script assumes that you have several packages already
+# installed via RHEL's yum using the following command:
+#
+# su -c 'yum install -y \
+# @development-tools gcc-c++ \
+# glibc glibc-devel glibc.i686 glibc-devel.i686 \
+# libmpc libmpc-devel mpfr mpfr-devel gmp gmp-devel \
+# gzip bzip2 '
+#
+##
+
+# Define the packages this platform needs
+PACKAGES=(
+once:gcc
+)
+
PROJECT=DTM++.toolbox
CLEAN_BUILD=false
COMPILER=native-openmpi
+#COMPILER=gcc-4.9.0-mvapich2-1.9
+
# How many processes would you like to build using?
PROCS=1
# installed.
STABLE_BUILD=true
#STABLE_BUILD=false
-
PROCS=1
# Would you like to build stable versions of projects?
-#STABLE_BUILD=true
-STABLE_BUILD=false
+STABLE_BUILD=true
+#STABLE_BUILD=false
# Would you like to use snapshots when using STABLE_BUILD=false?
USE_SNAPSHOTS=false
# Prefix directory
PREFIX_PATH=~/apps/candi
COMPILER=native-openmpi
+#COMPILER=gcc-4.9.0-openmpi-1.6.5
# Where do you want the downloaded source files to go?
DOWNLOAD_PATH=${PREFIX_PATH}/src
CONFOPTS="-q CFLAGS=-fPIC CXXFLAGS=-fPIC FFLAGS=-fPIC FCFLAGS=-fPIC"
INSTALL_PATH=${INSTALL_PATH}/${COMPILER}/${NAME}
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
MODULEFILE_PATH=${INSTALL_PATH}/conf/modulefiles/compiler/mpi/${COMPILER}
CONFIG_FILE=${MODULEFILE_PATH}/${NAME}
# Generate modulefile
mkdir -p ${MODULEFILE_PATH}
+ CONFIG_FILE=${MODULEFILE_PATH}/${NAME}
rm -f $CONFIG_FILE
echo "#%Module 1.0
#
# ${NAME} against ${COMPILER}
#
-conflict compiler
-
prepend-path PATH ${PATH}
prepend-path MANPATH ${MANPATH}
prepend-path INFOPATH ${INFOPATH}
setenv MPI_INCLUDE ${INSTALL_PATH}/include
setenv MPI_LIB ${INSTALL_PATH}/lib
setenv MPI_MAN ${INSTALL_PATH}/share/man
-setenv MPI_COMPILER mpich-x86_64
-setenv MPI_SUFFIX _mpich
+setenv MPI_COMPILER openmpi-x86_64
+setenv MPI_SUFFIX _openmpi
setenv MPI_HOME ${INSTALL_PATH}
setenv CC ${INSTALL_PATH}/bin/mpicc
setenv CXX ${INSTALL_PATH}/bin/mpic++
setenv FC ${INSTALL_PATH}/bin/mpif90
setenv FF ${INSTALL_PATH}/bin/mpif77
-setenv F90 ${INSTALL_PATH}/mpif90
+setenv F90 ${INSTALL_PATH}/bin/mpif90
setenv F77 ${INSTALL_PATH}/bin/mpif77
" >> $CONFIG_FILE
CONFOPTS="-q CFLAGS=-fPIC CXXFLAGS=-fPIC FFLAGS=-fPIC FCFLAGS=-fPIC"
INSTALL_PATH=${INSTALL_PATH}/${COMPILER}/${NAME}
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
MODULEFILE_PATH=${INSTALL_PATH}/conf/modulefiles/compiler/mpi/${COMPILER}
CONFIG_FILE=${MODULEFILE_PATH}/${NAME}
# Generate modulefile
mkdir -p ${MODULEFILE_PATH}
+ CONFIG_FILE=${MODULEFILE_PATH}/${NAME}
rm -f $CONFIG_FILE
echo "#%Module 1.0
#
# ${NAME} against ${COMPILER}
#
-conflict compiler
-
prepend-path PATH ${PATH}
prepend-path MANPATH ${MANPATH}
prepend-path INFOPATH ${INFOPATH}
setenv MPI_INCLUDE ${INSTALL_PATH}/include
setenv MPI_LIB ${INSTALL_PATH}/lib
setenv MPI_MAN ${INSTALL_PATH}/share/man
-setenv MPI_COMPILER mpich-x86_64
-setenv MPI_SUFFIX _mpich
+setenv MPI_COMPILER openmpi-x86_64
+setenv MPI_SUFFIX _openmpi
setenv MPI_HOME ${INSTALL_PATH}
setenv CC ${INSTALL_PATH}/bin/mpicc
setenv CXX ${INSTALL_PATH}/bin/mpic++
setenv FC ${INSTALL_PATH}/bin/mpif90
setenv FF ${INSTALL_PATH}/bin/mpif77
-setenv F90 ${INSTALL_PATH}/mpif90
+setenv F90 ${INSTALL_PATH}/bin/mpif90
setenv F77 ${INSTALL_PATH}/bin/mpif77
" >> $CONFIG_FILE
--- /dev/null
+VERSION=1.9
+NAME=mvapich2-${VERSION}
+SOURCE=http://mvapich.cse.ohio-state.edu/download/mvapich2/
+PACKING=.tgz
+CHECKSUM=5dc58ed08fd3142c260b70fe297e127c
+BUILDCHAIN=autotools
+
+CONFOPTS="--enable-shared"
+#CONFOPTS="--enable-error-messages=all --enable-g=dbg --enable-debuginfo" // for debugging
+
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+MODULEFILE_PATH=${INSTALL_PATH}/conf/modulefiles/compiler/mpi/${COMPILER}
+CONFIG_FILE=${MODULEFILE_PATH}/${NAME}
+
+# **********************************************************************************
+package_specific_conf() {
+ # Generate modulefile
+
+ mkdir -p ${MODULEFILE_PATH}
+ CONFIG_FILE=${MODULEFILE_PATH}/${NAME}
+ rm -f $CONFIG_FILE
+ echo "#%Module 1.0
+#
+# ${NAME} against ${COMPILER}
+#
+
+prepend-path PATH ${PATH}
+prepend-path MANPATH ${MANPATH}
+prepend-path INFOPATH ${INFOPATH}
+prepend-path LD_LIBRARY_PATH ${LD_LIBRARY_PATH}
+prepend-path LD_RUN_PATH ${LD_RUN_PATH}
+
+setenv LIBDIR ${LIBDIR}
+setenv LDFLAGS \"${LDFLAGS}\"
+
+prepend-path PATH ${INSTALL_PATH}/bin
+prepend-path LD_LIBRARY_PATH ${INSTALL_PATH}/lib
+prepend-path MANPATH ${INSTALL_PATH}/share/man
+
+setenv MPI_BIN ${INSTALL_PATH}/bin
+setenv MPI_SYSCONFIG ${INSTALL_PATH}/etc
+setenv MPI_INCLUDE ${INSTALL_PATH}/include
+setenv MPI_LIB ${INSTALL_PATH}/lib
+setenv MPI_MAN ${INSTALL_PATH}/share/man
+setenv MPI_COMPILER mvapich2-x86_64
+setenv MPI_SUFFIX _mvapich2
+setenv MPI_HOME ${INSTALL_PATH}
+
+setenv CC ${INSTALL_PATH}/bin/mpicc
+setenv CXX ${INSTALL_PATH}/bin/mpic++
+setenv FC ${INSTALL_PATH}/bin/mpif90
+setenv FF ${INSTALL_PATH}/bin/mpif77
+setenv F90 ${INSTALL_PATH}/bin/mpif90
+setenv F77 ${INSTALL_PATH}/bin/mpif77
+" >> $CONFIG_FILE
+
+ echo
+ echo "${NAME} has now been installed in"
+ echo
+ cecho ${GOOD} " ${INSTALL_PATH}"
+ echo
+ echo "To update your environment variables, use the created modulefile:"
+ echo
+ cecho ${GOOD} " $CONFIG_FILE"
+ echo
+}
-# Fedora 20
+# Fedora 19
# This build script assumes that you have installed
# an appropriate C/C++ and Fortran compiler.
# Define the packages this platform needs
PACKAGES=(
-#mpich2
-#mpich
-openmpi
+#once:mpich2
+#once:mpich
+#once:openmpi
+once:mvapich2
)
PACKAGES=(
#once:mpich2
#once:mpich
-once:openmpi
+#once:openmpi
+once:mvapich2
)
+
# Define the packages this platform needs
PACKAGES=(
-once:mpich2
+#once:mvapich2
+#once:mpich2
#once:mpich
-#once:openmpi
+once:openmpi
)
+
--- /dev/null
+# RHEL 7
+
+# This build script assumes that you have installed
+# an appropriate C/C++ and Fortran compiler.
+#
+# su -c 'yum install -y libtool-ltdl libtool-ltdl-devel'
+##
+
+# Define the packages this platform needs
+PACKAGES=(
+#once:mpich2
+#once:mpich
+once:openmpi
+)