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

[Cleanup]

parent c1e9d36a
No related branches found
No related tags found
No related merge requests found
...@@ -384,11 +384,11 @@ int main(int argc, char *argv[]) { ...@@ -384,11 +384,11 @@ int main(int argc, char *argv[]) {
initialDisplacementProblemSolver.solve(); initialDisplacementProblemSolver.solve();
} }
VectorType v_initial(finestSize); VectorType v_initial(finestSize);
v_initial = 0.0;
{ {
// Prescribe a homogeneous velocity field in the x-direction // Prescribe a homogeneous velocity field in the x-direction
// This way, the initial condition for v and the Dirichlet // This way, the initial condition for v and the Dirichlet
// condition match up at t=0 // condition match up at t=0
v_initial = 0.0;
double v_initial_const; double v_initial_const;
velocityDirichletFunction.evaluate(0.0, v_initial_const); velocityDirichletFunction.evaluate(0.0, v_initial_const);
for (size_t i = 0; i < v_initial.size(); ++i) for (size_t i = 0; i < v_initial.size(); ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment