Skip to content

Commit d3bb893

Browse files
committed
Fix for --disable-amr builds
1 parent 083f7a0 commit d3bb893

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/geom/elem.C

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,9 @@ Point Elem::true_centroid() const
505505
if (this->p_level())
506506
{
507507
auto elem_copy = this->disconnected_clone();
508+
#ifdef LIBMESH_ENABLE_AMR
508509
elem_copy->set_p_level(0);
510+
#endif
509511

510512
// Set node pointers
511513
for (auto n : this->node_index_range())

0 commit comments

Comments
 (0)