Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
4864f3dc
Commit
4864f3dc
authored
3 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Simplify access to MeshFaceBoundary
parent
beee128a
No related branches found
No related tags found
1 merge request
!140
Change referenced item list policy
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh/MeshLineFaceBoundary.cpp
+3
-14
3 additions, 14 deletions
src/mesh/MeshLineFaceBoundary.cpp
with
3 additions
and
14 deletions
src/mesh/MeshLineFaceBoundary.cpp
+
3
−
14
View file @
4864f3dc
...
...
@@ -9,21 +9,10 @@ template <size_t Dimension>
MeshLineFaceBoundary
<
Dimension
>
getMeshLineFaceBoundary
(
const
Mesh
<
Connectivity
<
Dimension
>>&
mesh
,
const
IBoundaryDescriptor
&
boundary_descriptor
)
{
for
(
size_t
i_ref_face_list
=
0
;
i_ref_face_list
<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
face
>();
++
i_ref_face_list
)
{
const
auto
&
ref_face_list
=
mesh
.
connectivity
().
template
refItemList
<
ItemType
::
face
>(
i_ref_face_list
);
const
RefId
&
ref
=
ref_face_list
.
refId
();
if
(
ref
==
boundary_descriptor
)
{
MeshFaceBoundary
<
Dimension
>
mesh_face_boundary
=
getMeshFaceBoundary
(
mesh
,
boundary_descriptor
);
MeshLineNodeBoundary
<
Dimension
>
mesh_line_node_boundary
=
getMeshLineNodeBoundary
(
mesh
,
boundary_descriptor
);
return
MeshLineFaceBoundary
<
Dimension
>
{
mesh
,
ref_face_list
,
mesh_line_node_boundary
.
direction
()};
}
}
std
::
ostringstream
ost
;
ost
<<
"cannot find face list with name "
<<
rang
::
fgB
::
red
<<
boundary_descriptor
<<
rang
::
style
::
reset
;
throw
NormalError
(
ost
.
str
());
return
MeshLineFaceBoundary
<
Dimension
>
{
mesh
,
mesh_face_boundary
.
refFaceList
(),
mesh_line_node_boundary
.
direction
()};
}
template
MeshLineFaceBoundary
<
2
>
getMeshLineFaceBoundary
(
const
Mesh
<
Connectivity
<
2
>>&
,
const
IBoundaryDescriptor
&
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment