Skip to content
Snippets Groups Projects
Commit 7b876467 authored by patavirt's avatar patavirt
Browse files

Short-circuit S_H if wanted

parent 1b47f3d4
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,9 @@ inline Scalar S_H(const array::ArrayView<const Mask, Shape0>& mask,
Scalar S{0.0};
if (alpha == 0)
return S;
for (int i = 0; i < nx-1; ++i) {
for (int j = 0; j < ny-1; ++j) {
if (mask(i,j) == Mask::VACUUM)
......
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