Debian Codegraph @

sampleScripts/linux-gibbon-gcc.4.3.2-meros-serial-cmake

raw
1 #!/bin/sh
2
3 # Script for building Trilinos on Linux machines with configurations
4 # similar to gibbon.math.ttu.edu.
5 #
6 # Assumes ExodusII and NetCDF libraries are installed.
7 #
8 # Originally written by Ross Bartlett, modified by Kevin Long
9
10
11
12
13 EXTRA_ARGS=$@
14
15 # Set the location of the compilers and libraries. On a simple out-of-the-box
16 # Linux system, COMPILER_ROOT will probably be someplace like /usr/local.
17 # On Kevin's TTU machines, there are multiple compiler versions located
18 # in subdirectories of /usr/local, e.g., /usr/local/gcc-4.3.2.
19
20 COMPILER_VERSION=gcc-4.3.2
21 COMPILER_ROOT=/usr/local/${COMPILER_VERSION}
22 BIN_PATH=${COMPILER_ROOT}/bin
23 LIB_PATH=${COMPILER_ROOT}/lib
24 INC_PATH=${COMPILER_ROOT}/include
25
26 # Set the path to the Trilinos data files. Some of the Sundance tests require
27 # large mesh files stored in TrilinosData. If the TrilinosData directory
28 # cannot be found, these tests will be disabled.
29 TRILINOS_DATA_DIR=${HOME}/Code/TrilinosData
30
31 # Set the fortran compiler and libraries.
32 # Currently configured for gfortran. Older systems may need g77 and
33 # libg2c.a.
34 FORTRAN_COMP=${BIN_PATH}/gfortran
35 FORTRAN_LIBS="${LIB_PATH}/libgfortran.a"
36
37 # Run cmake
38 cmake \
39 -D CMAKE_BUILD_TYPE:STRING=DEBUG \
40 -D CMAKE_SYSTEM_LIBRARY_PATH:FILEPATH="$LIB_PATH" \
41 -D CMAKE_SYSTEM_INCLUDE_PATH:FILEPATH="$INC_PATH" \
42 -D CMAKE_Fortran_COMPILER:FILEPATH="${FORTRAN_COMP}" \
43 -D Trilinos_EXTRA_LINK_FLAGS:STRING=${FORTRAN_LIBS} \
44 -D Trilinos_ENABLE_SHADOW_WARNINGS:BOOL=OFF \
45 -D Trilinos_ENABLE_TESTS:BOOL=ON \
46 -D Trilinos_ENABLE_Meros:BOOL=ON \
47 -D Stratimikos_ENABLE_EpetraExt:BOOL=ON \
48 -D Trilinos_DATA_DIR:FILEPATH="${TRILINOS_DATA_DIR}" \
49 -D CMAKE_INSTALL_PREFIX:PATH=$PWD \
50 $EXTRA_ARGS \
51 ../../Trilinos
52