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

Allow the end of time to be adjusted

parent 67821a6a
No related branches found
No related tags found
No related merge requests found
...@@ -291,7 +291,7 @@ int main(int argc, char *argv[]) { ...@@ -291,7 +291,7 @@ int main(int argc, char *argv[]) {
auto const V0 = parset.get<double>("boundary.friction.V0"); auto const V0 = parset.get<double>("boundary.friction.V0");
auto const mu = parset.get<double>("boundary.friction.mu"); auto const mu = parset.get<double>("boundary.friction.mu");
auto const timesteps = parset.get<size_t>("timeSteps"); auto const timesteps = parset.get<size_t>("timeSteps");
double const tau = 1.0 / timesteps; double const tau = parset.get<double>("endOfTime") / timesteps;
auto const &dirichletFunction = functions.get("dirichletCondition"); auto const &dirichletFunction = functions.get("dirichletCondition");
auto const &neumannFunction = functions.get("neumannCondition"); auto const &neumannFunction = functions.get("neumannCondition");
......
# -*- mode:conf -*- # -*- mode:conf -*-
timeSteps = 1000 timeSteps = 1000
endOfTime = 1.0
verbose = false verbose = false
printProgress = false printProgress = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment