From 1154c8c943d775b89ed329ce21705ef1533ce3d7 Mon Sep 17 00:00:00 2001 From: Jonathan Froehlich <chefsalat@mailbox.org> Date: Mon, 30 Jan 2023 16:54:06 +0100 Subject: [PATCH] Fixed return at end of method --- src/elasticity/solvers/ElasticitySolver.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/elasticity/solvers/ElasticitySolver.cpp b/src/elasticity/solvers/ElasticitySolver.cpp index 3016f2c7d..d45e1a3b2 100644 --- a/src/elasticity/solvers/ElasticitySolver.cpp +++ b/src/elasticity/solvers/ElasticitySolver.cpp @@ -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") } -- GitLab