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
eb758ca9
Commit
eb758ca9
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Impose item->item connectivity access through correct ItemId
parent
1a6edd28
No related branches found
No related tags found
1 merge request
!7
Feature/itemvalue
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mesh/ItemToItemMatrix.hpp
+9
-0
9 additions, 0 deletions
src/mesh/ItemToItemMatrix.hpp
src/mesh/MeshNodeBoundary.hpp
+1
-1
1 addition, 1 deletion
src/mesh/MeshNodeBoundary.hpp
with
10 additions
and
1 deletion
src/mesh/ItemToItemMatrix.hpp
+
9
−
0
View file @
eb758ca9
...
@@ -60,6 +60,15 @@ class ItemToItemMatrix
...
@@ -60,6 +60,15 @@ class ItemToItemMatrix
return
SubItemList
<
RowType
>
(
m_connectivity_matrix
.
rowConst
(
source_id
));
return
SubItemList
<
RowType
>
(
m_connectivity_matrix
.
rowConst
(
source_id
));
}
}
template
<
typename
IndexType
>
const
auto
operator
[](
const
IndexType
&
source_id
)
const
{
static_assert
(
std
::
is_same
<
IndexType
,
SourceItemId
>
(),
"ItemToItemMatrix must be indexed using correct ItemId"
);
using
RowType
=
decltype
(
m_connectivity_matrix
.
rowConst
(
source_id
));
return
SubItemList
<
RowType
>
(
m_connectivity_matrix
.
rowConst
(
source_id
));
}
ItemToItemMatrix
(
const
ConnectivityMatrix
&
connectivity_matrix
)
ItemToItemMatrix
(
const
ConnectivityMatrix
&
connectivity_matrix
)
:
m_connectivity_matrix
{
connectivity_matrix
}
:
m_connectivity_matrix
{
connectivity_matrix
}
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mesh/MeshNodeBoundary.hpp
+
1
−
1
View file @
eb758ca9
...
@@ -52,7 +52,7 @@ class MeshNodeBoundary
...
@@ -52,7 +52,7 @@ class MeshNodeBoundary
=
mesh
.
connectivity
().
faceToNodeMatrix
();
=
mesh
.
connectivity
().
faceToNodeMatrix
();
for
(
size_t
l
=
0
;
l
<
face_list
.
size
();
++
l
)
{
for
(
size_t
l
=
0
;
l
<
face_list
.
size
();
++
l
)
{
const
size_t
face_number
=
face_list
[
l
];
const
FaceId
face_number
=
face_list
[
l
];
const
auto
&
face_nodes
=
face_to_node_matrix
[
face_number
];
const
auto
&
face_nodes
=
face_to_node_matrix
[
face_number
];
for
(
size_t
r
=
0
;
r
<
face_nodes
.
size
();
++
r
)
{
for
(
size_t
r
=
0
;
r
<
face_nodes
.
size
();
++
r
)
{
...
...
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