fix(ftcs): add return statement for undefined boundary condition

This commit is contained in:
Max Lübke 2025-02-07 09:52:43 +01:00
parent 2250ee3f6f
commit bdb44b4fd5

View File

@ -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 <typename T>
@ -71,8 +72,6 @@ checkAndSetConstantInnerCells(const Boundary<T> &bc,
const auto &col = rowcol.second;
concentrations(row, col) = value;
}
return;
}
// FTCS solution for 1D grid