From 32bbdb17051ec41347f0343bb08ca24016f44ac7 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 17 Jan 2011 18:43:45 +0000 Subject: [PATCH] assert that the RodGrid is one-dimensional [[Imported from SVN: r6779]] --- dune/gfe/coupling/rodcontinuumcomplex.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dune/gfe/coupling/rodcontinuumcomplex.hh b/dune/gfe/coupling/rodcontinuumcomplex.hh index cd974ce0..3893b159 100644 --- a/dune/gfe/coupling/rodcontinuumcomplex.hh +++ b/dune/gfe/coupling/rodcontinuumcomplex.hh @@ -15,6 +15,8 @@ template <class RodGrid, class ContinuumGrid> class RodContinuumComplex { + dune_static_assert(RodGrid::dimension==1, "The RodGrid has to be one-dimensional!"); + typedef std::vector<RigidBodyMotion<3> > RodConfiguration; typedef Dune::BlockVector<Dune::FieldVector<double,3> > ContinuumConfiguration; -- GitLab