From bf5df9af82446eae528407228c586733e894497c Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 24 Oct 2011 07:57:17 +0000 Subject: [PATCH] Some refactoring [[Imported from SVN: r8000]] --- test/localgeodesicfefunctiontest.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test/localgeodesicfefunctiontest.cc b/test/localgeodesicfefunctiontest.cc index d4436460..13735689 100644 --- a/test/localgeodesicfefunctiontest.cc +++ b/test/localgeodesicfefunctiontest.cc @@ -356,15 +356,13 @@ void testUnitVector3d() } -template <int domainDim> -void testRotation() +template <class TargetSpace, int domainDim> +void test() { - std::cout << " --- Testing Rotation<3>, domain dimension: " << domainDim << " ---" << std::endl; - - typedef Rotation<3,double> TargetSpace; + std::cout << " --- Testing " << className<TargetSpace>() << ", domain dimension: " << domainDim << " ---" << std::endl; - std::vector<Rotation<3,double> > testPoints; - ValueFactory<Rotation<3,double> >::get(testPoints); + std::vector<TargetSpace> testPoints; + ValueFactory<TargetSpace>::get(testPoints); int nTestPoints = testPoints.size(); @@ -403,6 +401,6 @@ int main() testUnitVector2d<2>(); testUnitVector3d<2>(); - testRotation<1>(); - testRotation<2>(); + test<Rotation<3,double>,1>(); + test<Rotation<3,double>,2>(); } -- GitLab