Skip to content
Snippets Groups Projects
Commit ed8f469d authored by podlesny's avatar podlesny
Browse files

adapt to new [general] directory in cfg file

parent 2aaf4029
No related branches found
No related tags found
No related merge requests found
...@@ -76,10 +76,10 @@ void TwoBlocksFactory<HostGridType, VectorTEMPLATE>::setBodies() { ...@@ -76,10 +76,10 @@ void TwoBlocksFactory<HostGridType, VectorTEMPLATE>::setBodies() {
std::cout << "Grid" << i << " max diameter: " << maxDiameter << std::endl; 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]); 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]); this->bodies_[1] = std::make_shared<typename Base::LeafBody>(bodyData_[1], grids[1]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment