forked from Zhang-Jiayong/Albany
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseacas-cmake
executable file
·42 lines (39 loc) · 1.6 KB
/
seacas-cmake
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
#
# Sample CMake script for Trilinos to build the SEACAS tools.
# These are tools for exodus meshes, particularly partitioning.
# They are currently only built for serial (non-mpi) builds so are
# not created with the same script as the general Trilinos build.
#
# 1. Download Trilinos, make a build directort, e.g. Trilinos/seacas-build
# 2. Put this file in that subdirectory of Trilinos
# 3. Modify the NETCDF path below to point to your installed netcdf
# 4. Execute this script; make -j 4; make install
# 5. Several executables (decomp, nem_slice, epu, ..) should now be
# in $PWD/install/bin and can be copied to a bin dir of your choice.
#
# PreProcess: decomp -p 4 file.exo
# PostProcess: epu -auto file-out.exo.4.0
NETCDF=/home/agsalin/install/netcdf
PREFIX=$PWD/install
rm CMakeCache.txt
cmake -D CMAKE_INSTALL_PREFIX:PATH=$PREFIX \
-D TPL_ENABLE_MPI:BOOL=OFF \
\
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF \
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
-D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \
\
-D Trilinos_ENABLE_SEACAS:BOOL=ON \
-D Trilinos_ENABLE_SEACASAprepro:BOOL=ON \
-D Trilinos_ENABLE_SEACASConjoin:BOOL=ON \
-D Trilinos_ENABLE_SEACASEjoin:BOOL=ON \
-D Trilinos_ENABLE_SEACASEpu:BOOL=ON \
-D Trilinos_ENABLE_SEACASExodiff:BOOL=ON \
-D Trilinos_ENABLE_SEACASNemslice:BOOL=ON \
-D Trilinos_ENABLE_SEACASNemspread:BOOL=ON \
\
-D TPL_ENABLE_Netcdf:BOOL=ON \
-D TPL_Netcdf_INCLUDE_DIRS:PATH=$NETCDF/include \
-D Netcdf_LIBRARY_DIRS:PATH=$NETCDF/lib \
../