Skip to content
Snippets Groups Projects
Commit 34025912 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Generalize for different target spaces

parent 6c2eda51
No related branches found
No related tags found
No related merge requests found
Pipeline #2866 failed
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
const int dim = 2; const int dim = 2;
typedef UnitVector<double,3> TargetSpace;
using namespace Dune; using namespace Dune;
...@@ -28,7 +27,7 @@ double diameter(const std::vector<TargetSpace>& v) ...@@ -28,7 +27,7 @@ double diameter(const std::vector<TargetSpace>& v)
return d; return d;
} }
template <class Basis> template <class Basis, class TargetSpace>
void testEnergy(const Basis& basis, const std::vector<TargetSpace>& coefficients) void testEnergy(const Basis& basis, const std::vector<TargetSpace>& coefficients)
{ {
using GridView = typename Basis::GridView; using GridView = typename Basis::GridView;
...@@ -62,8 +61,8 @@ void testEnergy(const Basis& basis, const std::vector<TargetSpace>& coefficients ...@@ -62,8 +61,8 @@ void testEnergy(const Basis& basis, const std::vector<TargetSpace>& coefficients
} }
template <int domainDim> template <int domainDim, class TargetSpace>
void testUnitVector3d() void test()
{ {
// //////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////
// Make a test grid consisting of a single simplex // Make a test grid consisting of a single simplex
...@@ -128,5 +127,5 @@ int main(int argc, char** argv) ...@@ -128,5 +127,5 @@ int main(int argc, char** argv)
{ {
MPIHelper::instance(argc, argv); MPIHelper::instance(argc, argv);
testUnitVector3d<2>(); test<2,UnitVector<double,3> >();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment