Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
c24def54
Commit
c24def54
authored
Mar 26, 2019
by
Praetorius, Simon
Browse files
Instantiate ProblemStat and ProblemInstat for YaspGridBasis explicitly
parent
c217f8b6
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/amdis/CMakeLists.txt
View file @
c24def54
...
...
@@ -8,7 +8,7 @@ dune_library_add_sources(amdis SOURCES
Initfile.cpp
InitfileParser.cpp
ProblemInstatBase.cpp
#
ProblemInstat.cpp
ProblemInstat.cpp
ProblemStat.cpp
StandardProblemIteration.cpp
)
...
...
src/amdis/ProblemInstat.cpp
View file @
c24def54
#
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
src/amdis/ProblemInstat.hpp
View file @
c24def54
...
...
@@ -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"
src/amdis/ProblemStat.cpp
View file @
c24def54
#
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
src/amdis/ProblemStat.hpp
View file @
c24def54
...
...
@@ -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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment