Skip to content
Snippets Groups Projects
Commit 5fef5301 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

[Cleanup] Group timestepping parameters in the parset

parent 99f431b2
Branches
No related tags found
No related merge requests found
...@@ -462,15 +462,15 @@ int main(int argc, char *argv[]) { ...@@ -462,15 +462,15 @@ int main(int argc, char *argv[]) {
std::fstream dampingWriter("damping", std::fstream::out); std::fstream dampingWriter("damping", std::fstream::out);
auto timeSteppingScheme = auto timeSteppingScheme =
initTimeStepper(parset.get<Config::scheme>("timeSteppingScheme"), initTimeStepper(parset.get<Config::scheme>("timeSteps.scheme"),
velocityDirichletFunction, velocityDirichletNodes, M, A, velocityDirichletFunction, velocityDirichletNodes, M, A,
u_initial, v_initial, a_initial); u_initial, v_initial, a_initial);
auto stateUpdater = initStateUpdater<SingletonVectorType, VectorType>( auto stateUpdater = initStateUpdater<SingletonVectorType, VectorType>(
parset.get<Config::stateModel>("boundary.friction.stateModel"), parset.get<Config::stateModel>("boundary.friction.stateModel"),
alpha_initial, frictionalNodes, frictionData); alpha_initial, frictionalNodes, frictionData);
auto const timesteps = parset.get<size_t>("timeSteps"); auto const timesteps = parset.get<size_t>("timeSteps.number");
auto const tau = parset.get<double>("endOfTime") / timesteps; auto const tau = parset.get<double>("problem.endOfTime") / timesteps;
VectorType v = v_initial; VectorType v = v_initial;
SingletonVectorType alpha = alpha_initial; SingletonVectorType alpha = alpha_initial;
......
# -*- mode:conf -*- # -*- mode:conf -*-
timeSteps = 10000 [problem]
endOfTime = 15 endOfTime = 15
timeSteppingScheme = newmark [timeSteps]
number = 10000
scheme = newmark
[io] [io]
verbosity = quiet verbosity = quiet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment