https://mooseframework.inl.gov
solid_mechanics
include
constraints
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
12
namespace
// Anonymous namespace for helpers
13
{
24
struct
CompareElemsByLevel
25
{
26
bool
operator()(
const
Elem *
a
,
const
Elem *
b
)
const
27
{
28
libmesh_assert
(
a
);
29
libmesh_assert
(
b
);
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
a
const Real a
Definition:
GeochemistryActivityCalculatorsTest.C:17
b
const Real b
Definition:
GeochemistryActivityCalculatorsTest.C:18
libmesh_assert
libmesh_assert(ctx)
dof_id_type
uint8_t dof_id_type
Generated on Fri Jul 18 2025 11:57:07 for https://mooseframework.inl.gov by
1.8.14