Skip to content
Snippets Groups Projects
Commit 1154c8c9 authored by Jonathan Froehlich's avatar Jonathan Froehlich
Browse files

Fixed return at end of method

parent 187acedd
1 merge request!235Resolve "MultiElasticity should hold multiple MainElasticities"
Pipeline #125750 failed
......@@ -11,10 +11,14 @@ std::unique_ptr<CardiacSolverT<IElasticity>> GetElasticitySolver() {
if (runtype == "Exact") {
return std::make_unique<ExactMechanicsSolver>();
} else if (runtype == "Klotz") {
}
if (runtype == "Klotz") {
// Generate KlotzPressureSolver in src/elasticity/solvers/IterativePressureSolver.hpp
return std::make_unique<KlotzPressureSolver>();
} else if (runtype == "Default") {
}
if (runtype == "Default") {
if (dyn == "Static") {
// Generate IterativePressureSolver in src/elasticity/solvers/IterativePressureSolver.hpp
return std::make_unique<IterativePressureSolver>();
......@@ -23,4 +27,6 @@ std::unique_ptr<CardiacSolverT<IElasticity>> GetElasticitySolver() {
return std::make_unique<ElastodynamicTimeIntegrator>(dyn);
}
}
Exit("No solver for RunType " + runtype + " implemented")
}
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