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