From eeae57a2c9ab66a625e452639d8af5621e74e40b Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Wed, 14 Jan 2015 19:48:17 +0000 Subject: [PATCH] Use TargetSpace::CoordinateType instead of #ifdeffin' different FieldVectors [[Imported from SVN: r10003]] --- src/harmonicmaps.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc index 477a1705..19147ba6 100644 --- a/src/harmonicmaps.cc +++ b/src/harmonicmaps.cc @@ -161,15 +161,8 @@ int main (int argc, char *argv[]) try for (; vIt!=vEndIt; ++vIt) { int idx = grid.leafIndexSet().index(*vIt); -#ifdef REALTUPLE1 - FieldVector<double,1> v; -#elif defined UNITVECTOR3 - FieldVector<double,3> v; -#elif defined UNITVECTOR4 || defined ROTATION3 - FieldVector<double,4> v; -#else - FieldVector<double,2> v; -#endif + TargetSpace::CoordinateType v; + FieldVector<double,dim> pos = vIt->geometry().corner(0); FieldVector<double,3> axis; axis[0] = pos[0]; axis[1] = pos[1]; axis[2] = 1; -- GitLab