Skip to content

Commit

Permalink
MRA: fix operator precedence in key::child_at
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Sep 18, 2024
1 parent 42ca008 commit eb6dc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/madness/mra-device/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace mra {
assert(n<MAX_LEVEL);
assert(idx<num_children);
std::array<Translation,NDIM> l = this->l;
for (Dimension d = 0; d < NDIM; ++d) l[d] = 2*l[d] + (idx & (1<<d)) ? 1 : 0;
for (Dimension d = 0; d < NDIM; ++d) l[d] = 2*l[d] + ((idx & (1<<d)) ? 1 : 0);
return Key<NDIM>(n+1, l);
}
};
Expand Down

0 comments on commit eb6dc99

Please sign in to comment.