Skip to content
Snippets Groups Projects
Commit ec763796 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[local.fluxes.godunov] fix for release builds

parent 6474bb17
No related branches found
No related tags found
No related merge requests found
...@@ -157,11 +157,11 @@ public: ...@@ -157,11 +157,11 @@ public:
for (size_t ii = 0; ii < dimDomain; ++ii) { for (size_t ii = 0; ii < dimDomain; ++ii) {
if (DSC::FloatCmp::eq(n_ij[ii], RangeFieldType(1)) || DSC::FloatCmp::eq(n_ij[ii], RangeFieldType(-1))) if (DSC::FloatCmp::eq(n_ij[ii], RangeFieldType(1)) || DSC::FloatCmp::eq(n_ij[ii], RangeFieldType(-1)))
coord = ii; coord = ii;
else if (DSC::FloatCmp::eq(n_ij[ii], RangeFieldType(0))) {
#ifndef NDEBUG #ifndef NDEBUG
else if (DSC::FloatCmp::eq(n_ij[ii], RangeFieldType(0)))
++num_zeros; ++num_zeros;
#endif // NDEBUG #endif // NDEBUG
else } else
DUNE_THROW(Dune::NotImplemented, "Godunov flux is only implemented for axis parallel cube grids"); DUNE_THROW(Dune::NotImplemented, "Godunov flux is only implemented for axis parallel cube grids");
} }
assert(num_zeros == dimDomain - 1); assert(num_zeros == dimDomain - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment