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

Instantiate ProblemStat and ProblemInstat for YaspGridBasis explicitly

parent c217f8b6
...@@ -8,7 +8,7 @@ dune_library_add_sources(amdis SOURCES ...@@ -8,7 +8,7 @@ dune_library_add_sources(amdis SOURCES
Initfile.cpp Initfile.cpp
InitfileParser.cpp InitfileParser.cpp
ProblemInstatBase.cpp ProblemInstatBase.cpp
# ProblemInstat.cpp ProblemInstat.cpp
ProblemStat.cpp ProblemStat.cpp
StandardProblemIteration.cpp StandardProblemIteration.cpp
) )
......
#define AMDIS_NO_EXTERN_PROBLEMINSTAT #include "config.h"
#include "ProblemInstat.hpp" #include "ProblemInstat.hpp"
#undef AMDIS_NO_EXTERN_PROBLEMINSTAT
namespace AMDiS namespace AMDiS
{ {
// explicit template instatiation // explicit template instatiation
// template class ProblemInstat<YaspGridBasis<2,1>>; template class ProblemInstat<YaspGridBasis<2,1>>;
template class ProblemInstat<YaspGridBasis<2,2>>;
} // end namespace AMDiS } // end namespace AMDiS
...@@ -110,6 +110,10 @@ namespace AMDiS ...@@ -110,6 +110,10 @@ namespace AMDiS
return {name, prob, initialProb}; return {name, prob, initialProb};
} }
// mark template as explicitly instantiated in cpp file
extern template class ProblemInstat<YaspGridBasis<2,1>>;
extern template class ProblemInstat<YaspGridBasis<2,2>>;
} // end namespace AMDiS } // end namespace AMDiS
#include "ProblemInstat.inc.hpp" #include "ProblemInstat.inc.hpp"
#define AMDIS_NO_EXTERN_PROBLEMSTAT #include "config.h"
#include "ProblemStat.hpp" #include "ProblemStat.hpp"
#undef AMDIS_NO_EXTERN_PROBLEMSTAT
namespace AMDiS namespace AMDiS
{ {
// explicit template instatiation
template class ProblemStat<YaspGridBasis<2,1>>;
template class ProblemStat<YaspGridBasis<2,2>>;
} // end namespace AMDiS } // end namespace AMDiS
...@@ -499,7 +499,10 @@ namespace AMDiS ...@@ -499,7 +499,10 @@ namespace AMDiS
return {name, grid, globalBasis}; return {name, grid, globalBasis};
} }
// mark templates as explicitly instantiated in cpp file
extern template class ProblemStat<YaspGridBasis<2,1>>;
extern template class ProblemStat<YaspGridBasis<2,2>>;
} // end namespace AMDiS } // end namespace AMDiS
#include "ProblemStat.inc.hpp" #include "ProblemStat.inc.hpp"
Supports Markdown
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