This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.systems
71 lines (69 loc) · 2.24 KB
/
configure.systems
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
#
# Copyright (C) 2011, Steffen Knollmann
# Released under the terms of the GNU General Public License version 3.
# This file is part of `ginnungagap'.
#
# Note1: To extend the list of predefined systems please do NOT edit
# this file. Instead put your systems in a separate file called
# `configure.systems.own', use `doc/configure.systems.ownEXAMPLE'
# as a template.
# This script will check if the file `configure.systems.own'
# exist and source it. In this way, you can use this file
# whereever you need it without the danger of it being
# overwritten when you update ginnungagap. You may of course
# send additions to the list of systems to the maintainer asking
# to include it in the standard distribution.
#
# Note2: This file is not actually executable, it will be (on request)
# sourced by ./configure.
OWNSYSTEMTYPE=false
if test -e configure.systems.own
then
# This assumes that OWNSYSTEMTYPE is set to true if the system
# appeared in own systems. This will prevent the standard systems
# to be checked again and potentially ending with an error.
. ./configure.systems.own
fi
if test "x$OWNSYSTEMTYPE" = "xfalse"
then
case $SYSTEMTYPE in
full)
# This is simply a quick way to switch on all bells and
# whistles.
WITH_MPI=true
WITH_OPENMP=true
WITH_SILO=true
WITH_HDF5=true
;;
curie)
WITH_FFT_LIBS="-lfftw3_omp -lfftw3 -lfftw3f_omp -lfftw3f"
WITH_FFT_PREFIX=/ccc/cont005/home/ra0317/knollmas/opt/fftw/fftw-3.3-intel
WITH_SPRNG_PREFIX=/ccc/cont005/home/ra0317/knollmas/opt/sprng/sprng-2.0b-intel
WITH_GSL_PREFIX=/usr/local/gsl-1.14
if test "x$WITH_MPI" = "xtrue"
then
WITH_HDF5_PREFIX=/usr/local/phdf5-1.8.5
else
WITH_HDF5_PREFIX=/usr/local/hdf5-1.8.5
fi
;;
erebos)
WITH_FFT_LIBS="-lfftw3_omp -lfftw3 -lfftw3f_omp -lfftw3f"
case $TOOLCHAIN in
intel)
WITH_SPRNG_PREFIX=/z/knolli/opt/sprng/sprng-2.0b-intel
WITH_FFT_PREFIX=/z/knolli/opt/fftw/fftw-3.3-intel
;;
*)
WITH_SPRNG_PREFIX=/z/knolli/opt/sprng/sprng-2.0b-gcc
WITH_FFT_PREFIX=/z/knolli/opt/fftw/fftw-3.3-gcc
;;
esac
;;
*)
$ECHO "Unknown system: $SYSTEMTYPE"
exit 1
;;
esac
fi