Skip to content

Commit 99faccb

Browse files
committed
Fix code base on Roy's feedback
(a) Revert periodic BC source file (b) Fix indentation in UnstructuredMesh::find_neighbors and wrap tests (c) involving solve() in DisconnectedNeighborTest with #ifdef LIBMESH_HAVE_SOLVER guards to ensure correct conditional compilation.
1 parent 1ad8ef8 commit 99faccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/base/periodic_boundaries.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ const Elem * PeriodicBoundaries::neighbor(boundary_id_type boundary_id,
8080
const MeshBase & mesh = point_locator.get_mesh();
8181
for(const Elem * elem_it : candidate_elements)
8282
{
83-
8483
std::vector<unsigned int> neigh_sides =
8584
mesh.get_boundary_info().sides_with_boundary_id(elem_it, b->pairedboundary);
8685

@@ -106,13 +105,14 @@ const Elem * PeriodicBoundaries::neighbor(boundary_id_type boundary_id,
106105
// either we're on a ghosted element with a remote periodic neighbor
107106
// or we're on a mesh with an inconsistent periodic boundary.
108107
libmesh_error_msg_if(mesh.is_serial() ||
109-
(e->processor_id() == mesh.processor_id()),
110-
"Periodic boundary neighbor not found");
108+
(e->processor_id() == mesh.processor_id()),
109+
"Periodic boundary neighbor not found");
111110

112111
if (neigh_side)
113112
*neigh_side = libMesh::invalid_uint;
114113
return remote_elem;
115114
}
115+
116116
} // namespace libMesh
117117

118118

0 commit comments

Comments
 (0)