Skip to content

Commit

Permalink
Remove recursive check
Browse files Browse the repository at this point in the history
Although `getGlobal` is only valid for local indices, unfortunately
`isLocal` calls `getGlobal`, so we can't actually check!
  • Loading branch information
ZedThree committed May 31, 2024
1 parent bf90b1d commit b7f5b94
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/bout/globalindexer.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public:
/// Convert the local index object to a global index which can be
/// used in PETSc vectors and matrices.
virtual int getGlobal(const ind_type& ind) const {
ASSERT1(isLocal(ind));
return static_cast<int>(std::round(indices[ind]));
}

Expand Down

0 comments on commit b7f5b94

Please sign in to comment.