remove obsolete build scripts
This commit is contained in:
parent
c6d8d42b4d
commit
b00b8e82f6
51
build_FEM.sh
51
build_FEM.sh
|
@ -1,51 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cat README
|
||||
echo
|
||||
echo "Building FEM solver with ${FC}"
|
||||
DAMASKVERSION=$(cat VERSION)
|
||||
|
||||
# prepare building directory
|
||||
# structure:
|
||||
# BUILD_DIR
|
||||
# |-BUILD_SPECTRAL
|
||||
# |-BUILD_FEM
|
||||
# |-BUILD_MARC
|
||||
if [ ! -d build ]; then
|
||||
mkdir build
|
||||
fi
|
||||
cd build
|
||||
if [ -d FEM ] ; then
|
||||
rm -rf FEM
|
||||
fi
|
||||
mkdir FEM
|
||||
cd FEM
|
||||
|
||||
##
|
||||
# CMake call
|
||||
# PETSC_DIR | PETSC directory
|
||||
# DAMASK_V | DAMASK current revision
|
||||
# CMAKE_BUILD_TYPE | Default set to release (no debugging output)
|
||||
# CMAKE_VERBOSE_MAKEFILE | [ON/OFF] toggle makefile verbose output
|
||||
# OPENMP | [ON/OFF]
|
||||
# OPTIMIZATION | [OFF,DEFENSIVE,AGGRESSIVE,ULTRA]
|
||||
# DAMASK_DRIVER | [SPECTRAL, FEM]
|
||||
# DAMASK_INSTALL | Directory to install binary output
|
||||
# INSTALL_PROCESSING | Build supporting pre/post processing scripts
|
||||
cmake -D PETSC_DIR=${PETSC_DIR} \
|
||||
-D DAMASK_V=${DAMASKVERSION} \
|
||||
-D CMAKE_BUILD_TYPE=RELEASE \
|
||||
-D CMAKE_VERBOSE_MAKEFILE=OFF \
|
||||
-D OPENMP=ON \
|
||||
-D OPTIMIZATION=DEFENSIVE \
|
||||
-D DAMASK_DRIVER=FEM \
|
||||
-D DAMASK_INSTALL=${HOME}/bin \
|
||||
-D DAMASK_PREFIX="" \
|
||||
-D DAMASK_SUFFIX="-Wl,--verbose" \
|
||||
../..
|
||||
|
||||
echo
|
||||
echo "Please move to the build directory using"
|
||||
echo " cd build/FEM"
|
||||
echo "Using the following command to build DAMASK spectral solver"
|
||||
echo " make clean all install"
|
|
@ -1,58 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cat README
|
||||
echo
|
||||
|
||||
if [ "$OSTYPE" == "linux-gnu" ] || [ "$OSTYPE" == 'linux' ]; then
|
||||
DAMASK_ROOT=$(readlink -f "`dirname $BASH_SOURCE`")
|
||||
else
|
||||
[[ "${BASH_SOURCE::1}" == "/" ]] && BASE="" || BASE="`pwd`/"
|
||||
STAT=$(stat "`dirname $BASE$BASH_SOURCE`")
|
||||
DAMASK_ROOT=${STAT##* }
|
||||
fi
|
||||
|
||||
BUILDROOT=$DAMASK_ROOT/build
|
||||
BUILDDIR=spectral
|
||||
|
||||
# prepare building directory
|
||||
# structure:
|
||||
# BUILD_DIR
|
||||
# |-BUILD_SPECTRAL
|
||||
# |-BUILD_FEM
|
||||
# |-BUILD_MARC
|
||||
if [ ! -d $BUILDROOT ]; then
|
||||
mkdir $BUILDROOT
|
||||
fi
|
||||
cd $BUILDROOT
|
||||
if [ -d $BUILDDIR ] ; then
|
||||
rm -rf $BUILDDIR
|
||||
fi
|
||||
mkdir $BUILDDIR
|
||||
cd $BUILDDIR
|
||||
|
||||
##
|
||||
# CMake call
|
||||
# PETSC_DIR | PETSC directory
|
||||
# CMAKE_BUILD_TYPE | Default set to release (no debugging output)
|
||||
# CMAKE_VERBOSE_MAKEFILE | [ON/OFF] toggle makefile verbose output
|
||||
# OPENMP | [ON/OFF]
|
||||
# OPTIMIZATION | [OFF,DEFENSIVE,AGGRESSIVE,ULTRA]
|
||||
# DAMASK_DRIVER | [SPECTRAL, FEM]
|
||||
# DAMASK_INSTALL | Directory to install binary output
|
||||
# BUILDCMD_PRE | Compiler prefix
|
||||
# BUILDCMD_POST | Compiler suffix,
|
||||
# | e.g. DAMASK_SUFFIX="-Wl,--verbose"
|
||||
cmake -D PETSC_DIR=${PETSC_DIR} \
|
||||
-D CMAKE_BUILD_TYPE=RELEASE \
|
||||
-D CMAKE_VERBOSE_MAKEFILE=OFF \
|
||||
-D OPENMP=ON \
|
||||
-D OPTIMIZATION=DEFENSIVE \
|
||||
-D DAMASK_DRIVER=SPECTRAL \
|
||||
-D DAMASK_INSTALL=${HOME}/bin \
|
||||
-D BUILDCMD_PRE="" \
|
||||
-D BUILDCMD_POST="-Wl,--verbose" \
|
||||
../..
|
||||
|
||||
echo "Start compiling DAMASK_spectral"
|
||||
make
|
||||
make install
|
Loading…
Reference in New Issue