File: linux-gibbon-gcc.4.3.2-meros-serial-cmake

package info (click to toggle)
trilinos 16.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 993,992 kB
  • sloc: cpp: 3,764,859; ansic: 425,011; fortran: 160,684; python: 101,476; xml: 74,329; sh: 37,044; makefile: 22,641; perl: 7,525; f90: 6,424; csh: 5,285; objc: 2,620; lex: 1,646; lisp: 810; yacc: 603; javascript: 552; awk: 364; ml: 281; php: 145
file content (52 lines) | stat: -rwxr-xr-x 1,705 bytes parent folder | download | duplicates (7)
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
#!/bin/sh

# Script for building Trilinos on Linux machines with configurations
# similar to gibbon.math.ttu.edu. 
#
# Assumes ExodusII and NetCDF libraries are installed. 
#
# Originally written by Ross Bartlett, modified by Kevin Long




EXTRA_ARGS=$@

# Set the location of the compilers and libraries. On a simple out-of-the-box
# Linux system, COMPILER_ROOT will probably be someplace like /usr/local. 
# On Kevin's TTU machines, there are multiple compiler versions located
# in subdirectories of /usr/local, e.g., /usr/local/gcc-4.3.2.

COMPILER_VERSION=gcc-4.3.2
COMPILER_ROOT=/usr/local/${COMPILER_VERSION}
BIN_PATH=${COMPILER_ROOT}/bin
LIB_PATH=${COMPILER_ROOT}/lib
INC_PATH=${COMPILER_ROOT}/include

# Set the path to the Trilinos data files. Some of the Sundance tests require
# large mesh files stored in TrilinosData. If the TrilinosData directory
# cannot be found, these tests will be disabled.
TRILINOS_DATA_DIR=${HOME}/Code/TrilinosData

# Set the fortran compiler and libraries. 
# Currently configured for gfortran. Older systems may need g77 and 
# libg2c.a. 
FORTRAN_COMP=${BIN_PATH}/gfortran
FORTRAN_LIBS="${LIB_PATH}/libgfortran.a"

# Run cmake
cmake \
-D CMAKE_BUILD_TYPE:STRING=DEBUG \
-D CMAKE_SYSTEM_LIBRARY_PATH:FILEPATH="$LIB_PATH" \
-D CMAKE_SYSTEM_INCLUDE_PATH:FILEPATH="$INC_PATH" \
-D CMAKE_Fortran_COMPILER:FILEPATH="${FORTRAN_COMP}" \
-D Trilinos_EXTRA_LINK_FLAGS:STRING=${FORTRAN_LIBS} \
-D Trilinos_ENABLE_SHADOW_WARNINGS:BOOL=OFF \
-D Trilinos_ENABLE_TESTS:BOOL=ON \
-D Trilinos_ENABLE_Meros:BOOL=ON \
-D Stratimikos_ENABLE_EpetraExt:BOOL=ON \
-D Trilinos_DATA_DIR:FILEPATH="${TRILINOS_DATA_DIR}" \
-D CMAKE_INSTALL_PREFIX:PATH=$PWD \
$EXTRA_ARGS \
../../Trilinos