Skip to content
Snippets Groups Projects
Commit 9a911ec4 authored by Elias Pipping's avatar Elias Pipping
Browse files

Turn two divs into a div and two mult

parent d6a6e563
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -274,9 +274,12 @@ class ObstacleTNNMGStep
for (int j = 0; j < blockSize; ++j)
{
auto const inverseCoarseCorrection =
field_type(1) / coarseCorrection_[i][j];
// compute relative defect constraints
defectConstraint.lower(j) /= coarseCorrection_[i][j];
defectConstraint.upper(j) /= coarseCorrection_[i][j];
defectConstraint.lower(j) *= inverseCoarseCorrection;
defectConstraint.upper(j) *= inverseCoarseCorrection;
// orient relative defect constraints
if (defectConstraint.lower(j) > defectConstraint.upper(j))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment