mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-15 18:38:23 +01:00
fix(ftcs): add return statement for undefined boundary condition
This commit is contained in:
parent
2250ee3f6f
commit
bdb44b4fd5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user