From ed8f469d3f519f3473544c091707f37c5d774025 Mon Sep 17 00:00:00 2001
From: podlesny <podlesny@zedat.fu-berlin.de>
Date: Sun, 14 Mar 2021 17:15:06 +0100
Subject: [PATCH] adapt to new [general] directory in cfg file

---
 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 f18f91eb..a60ace65 100644
--- a/dune/tectonic/factories/twoblocksfactory.cc
+++ b/dune/tectonic/factories/twoblocksfactory.cc
@@ -76,10 +76,10 @@ void TwoBlocksFactory<HostGridType, VectorTEMPLATE>::setBodies() {
         std::cout << "Grid" << i << " max diameter: " << maxDiameter << std::endl;
     }
 
-    bodyData_[0] = std::make_shared<MyBodyData<dim>>(this->parset_.sub("body0"), this->parset_.template get<double>("gravity"), zenith_());
+    bodyData_[0] = std::make_shared<MyBodyData<dim>>(this->parset_.sub("body0"), this->parset_.template get<double>("general.gravity"), zenith_());
     this->bodies_[0] = std::make_shared<typename Base::LeafBody>(bodyData_[0], grids[0]);
 
-    bodyData_[1] = std::make_shared<MyBodyData<dim>>(this->parset_.sub("body1"), this->parset_.template get<double>("gravity"), zenith_());
+    bodyData_[1] = std::make_shared<MyBodyData<dim>>(this->parset_.sub("body1"), this->parset_.template get<double>("general.gravity"), zenith_());
     this->bodies_[1] = std::make_shared<typename Base::LeafBody>(bodyData_[1], grids[1]);
 }
 
-- 
GitLab