We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161bfd0 commit e66870fCopy full SHA for e66870f
src/mesh.cpp
@@ -3605,8 +3605,8 @@ void AdaptiveLibMesh::write(const std::string& filename) const
3605
int AdaptiveLibMesh::get_bin_from_element(const libMesh::Elem* elem) const
3606
{
3607
auto tally_elem = amalgamation_ ? clustering_element_mapping_.at(elem) : elem;
3608
- int bin = adaptive_ ? elem_to_bin_map_[tally_elem->id()]
3609
- : tally_elem->id() - first_element_id_;
+ int bin = elem_to_bin_map_[tally_elem->id()]
+
3610
if (bin >= n_bins() || bin < 0) {
3611
fatal_error(fmt::format("Invalid bin: {}", bin));
3612
}
0 commit comments