Commit ffd7d8d9 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

deactivate precompiled templates by default

parent fa7879f4
......@@ -10,7 +10,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules"
include(DuneMacros)
option(ENABLE_ALL_WARNINGS "enable all meaningful warnings" OFF)
option(ENABLE_PRECOMPILED "enable precompiled template instantiation" ON)
option(ENABLE_PRECOMPILED "enable precompiled template instantiation" OFF)
option(ENABLE_PCH "enable precompiled-headers" OFF)
option(ENABLE_CCACHE "enable compiler cache" ON)
......
......@@ -8,11 +8,13 @@ target_sources(amdis PRIVATE
Initfile.cpp
InitfileParser.cpp
ProblemInstatBase.cpp
ProblemInstat.cpp
ProblemStat.cpp
StandardProblemIteration.cpp
)
if(ENABLE_PRECOMPILED)
target_sources(amdis PRIVATE ProblemInstat.cpp ProblemStat.cpp)
endif()
set(HEADERS
AdaptBase.hpp
AdaptInfo.hpp
......
......@@ -101,10 +101,11 @@ namespace AMDiS
ProblemInstat(std::string const& name, ProblemStat<Traits>& prob, ProblemStatBase& initialProb)
-> ProblemInstat<Traits>;
#if ENABLE_PRECOMPILED
// mark template as explicitly instantiated in cpp file
extern template class ProblemInstat<LagrangeBasis<Dune::YaspGrid<2>,1>>;
extern template class ProblemInstat<LagrangeBasis<Dune::YaspGrid<2>,1,1>>;
#endif
} // end namespace AMDiS
......
......@@ -590,9 +590,11 @@ namespace AMDiS
-> ProblemStat<Impl::DeducedProblemTraits_t<Underlying_t<Grid>,Underlying_t<Basis>>>;
#if ENABLE_PRECOMPILED
// mark templates as explicitly instantiated in cpp file
extern template class ProblemStat<LagrangeBasis<Dune::YaspGrid<2>,1>>;
extern template class ProblemStat<LagrangeBasis<Dune::YaspGrid<2>,1,1>>;
#endif
} // end namespace AMDiS
......
#!/usr/bin/env bash
USAGE_HELP="usage: $0 --prefix DUNE_BASE_DIR [--branch DUNE_BRANCH]"
USAGE_HELP="usage: $0 --prefix DUNE_BASE_DIR [--branch DUNE_BRANCH] [--ssh]"
PREFIX="-"
BRANCH="releases/2.7"
NUM_PROCS=$(nproc --all)
USE_SSH="0"
while [[ $# -gt 0 ]]
do
......@@ -21,6 +22,10 @@ case $key in
shift # past argument
shift # past value
;;
--ssh)
USE_SSH="1"
shift
;;
-n|--np)
NUM_PROCS="$2"
shift # past argument
......@@ -43,6 +48,11 @@ fi
mkdir -p ${PREFIX}
cd ${PREFIX}
BASE_URL="https://gitlab.dune-project.org"
if [[ "${USE_SSH}" -eq "1" ]]; then
BASE_URL="ssh://git@gitlab.dune-project.org:22022"
fi
CORE_MODULES=("dune-common" "dune-geometry" "dune-grid" "dune-istl" "dune-localfunctions")
STAGING_MODULES=("dune-functions" "dune-typetree" "dune-uggrid")
EXTENSIONS_MODULES=("dune-alugrid" "dune-foamgrid")
......@@ -52,17 +62,18 @@ MISC_REPOS=("https://gitlab.mn.tu-dresden.de/iwr/dune-vtk.git" \
"https://gitlab.mn.tu-dresden.de/iwr/dune-gmsh4.git")
MISC_BRANCHES=("master" "master")
# download all modules by git
for MOD in ${CORE_MODULES[*]}; do
git clone https://gitlab.dune-project.org/core/${MOD}.git --branch ${BRANCH}
git clone ${BASE_URL}/core/${MOD}.git --branch ${BRANCH}
done
for MOD in ${STAGING_MODULES[*]}; do
git clone https://gitlab.dune-project.org/staging/${MOD}.git --branch ${BRANCH}
git clone ${BASE_URL}/staging/${MOD}.git --branch ${BRANCH}
done
for MOD in ${EXTENSIONS_MODULES[*]}; do
git clone https://gitlab.dune-project.org/extensions/${MOD}.git --branch ${BRANCH}
git clone ${BASE_URL}/extensions/${MOD}.git --branch ${BRANCH}
done
for I in ${!MISC_MODULES[*]}; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment