From 9f7e756c05081a16daa840f1eef59c81bb278db9 Mon Sep 17 00:00:00 2001 From: podlesny <podlesny@zedat.fu-berlin.de> Date: Mon, 15 Feb 2021 10:01:28 +0100 Subject: [PATCH] center bodies in x-direction at zero --- dune/tectonic/factories/twoblocksfactory.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/tectonic/factories/twoblocksfactory.cc b/dune/tectonic/factories/twoblocksfactory.cc index a5f57cba..18d7bb2f 100644 --- a/dune/tectonic/factories/twoblocksfactory.cc +++ b/dune/tectonic/factories/twoblocksfactory.cc @@ -36,8 +36,8 @@ void TwoBlocksFactory<HostGridType, VectorTEMPLATE>::setBodies() { cuboidGeometries_[1] = std::make_shared<CuboidGeometry>(origins[1], lengths[1], heights[1], depths[1]); cuboidGeometries_[1]->addWeakeningPatch(frictionParset, origins[1], {origins[1][0] + lengths[1], origins[1][1], 0}); #elif MY_DIM == 2 - origins[0] = {0, 0}; - origins[1] = {lengths[0]/2.0, origins[0][1] + heights[0]}; + origins[0] = {-lengths[0]/2.0, 0}; + origins[1] = {-lengths[1]/2.0, origins[0][1] + heights[0]}; cuboidGeometries_[0] = std::make_shared<CuboidGeometry>(origins[0], lengths[0], heights[0]); cuboidGeometries_[0]->addWeakeningPatch(frictionParset, {origins[0][0], origins[0][1]+ heights[0]}, {origins[0][0] + lengths[0], origins[0][1]+ heights[0]}); -- GitLab