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
Initfile.cpp
InitfileParser.cpp
ProblemInstatBase.cpp
# ProblemInstat.cpp
ProblemInstat.cpp
ProblemStat.cpp
StandardProblemIteration.cpp
)
......
#define AMDIS_NO_EXTERN_PROBLEMINSTAT
#include "config.h"
#include "ProblemInstat.hpp"
#undef AMDIS_NO_EXTERN_PROBLEMINSTAT
namespace AMDiS
{
// explicit template instatiation
// template class ProblemInstat<YaspGridBasis<2,1>>;
template class ProblemInstat<YaspGridBasis<2,1>>;
template class ProblemInstat<YaspGridBasis<2,2>>;
} // end namespace AMDiS
......@@ -110,6 +110,10 @@ namespace AMDiS
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
#include "ProblemInstat.inc.hpp"
#define AMDIS_NO_EXTERN_PROBLEMSTAT
#include "config.h"
#include "ProblemStat.hpp"
#undef AMDIS_NO_EXTERN_PROBLEMSTAT
namespace AMDiS
{
// explicit template instatiation
template class ProblemStat<YaspGridBasis<2,1>>;
template class ProblemStat<YaspGridBasis<2,2>>;
} // end namespace AMDiS
......@@ -499,7 +499,10 @@ namespace AMDiS
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
#include "ProblemStat.inc.hpp"
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