https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodalConstraintUtils.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12namespace // Anonymous namespace for helpers
13{
24struct CompareElemsByLevel
25{
26 bool operator()(const Elem * a, const Elem * b) const
27 {
30 const unsigned int al = a->level(), bl = b->level();
31 const dof_id_type aid = a->id(), bid = b->id();
32
33 return (al == bl) ? aid < bid : al < bl;
34 }
35};
36
37} // anonymous namespace
libmesh_assert(ctx)
uint8_t dof_id_type