Skip to content

Commit e66870f

Browse files
committed
I don't need adaptive_ check for an Adaptive class
1 parent 161bfd0 commit e66870f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mesh.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3605,8 +3605,8 @@ void AdaptiveLibMesh::write(const std::string& filename) const
36053605
int AdaptiveLibMesh::get_bin_from_element(const libMesh::Elem* elem) const
36063606
{
36073607
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_;
3608+
int bin = elem_to_bin_map_[tally_elem->id()]
3609+
36103610
if (bin >= n_bins() || bin < 0) {
36113611
fatal_error(fmt::format("Invalid bin: {}", bin));
36123612
}

0 commit comments

Comments
 (0)