From bdb44b4fd55fc5294e18e784d5be8aa1a8d9ba4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Fri, 7 Feb 2025 09:52:43 +0100 Subject: [PATCH] fix(ftcs): add return statement for undefined boundary condition --- include/tug/Core/Numeric/FTCS.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/tug/Core/Numeric/FTCS.hpp b/include/tug/Core/Numeric/FTCS.hpp index 0c50671..28d2db6 100644 --- a/include/tug/Core/Numeric/FTCS.hpp +++ b/include/tug/Core/Numeric/FTCS.hpp @@ -54,6 +54,7 @@ constexpr T calcChangeBoundary(T conc_c, T conc_neighbor, T alpha_center, } tug_assert(false, "Undefined Boundary Condition Type!"); + return 0; } template @@ -71,8 +72,6 @@ checkAndSetConstantInnerCells(const Boundary &bc, const auto &col = rowcol.second; concentrations(row, col) = value; } - - return; } // FTCS solution for 1D grid