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
d8613ba7
Commit
d8613ba7
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused members and their initialization
- m_node_faces - m_node_nb_faces
parent
6bd4c2dc
No related branches found
No related tags found
1 merge request
!6
Feature/crs
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mesh/Connectivity.cpp
+0
-29
0 additions, 29 deletions
src/mesh/Connectivity.cpp
src/mesh/Connectivity.hpp
+0
-3
0 additions, 3 deletions
src/mesh/Connectivity.hpp
with
0 additions
and
32 deletions
src/mesh/Connectivity.cpp
+
0
−
29
View file @
d8613ba7
...
@@ -161,36 +161,7 @@ void Connectivity<3>::_computeFaceCellConnectivities()
...
@@ -161,36 +161,7 @@ void Connectivity<3>::_computeFaceCellConnectivities()
m_face_local_numbers_in_their_cells
m_face_local_numbers_in_their_cells
=
m_connectivity_computer
.
computeLocalItemNumberInChildItem
<
ItemType
::
face
,
=
m_connectivity_computer
.
computeLocalItemNumberInChildItem
<
ItemType
::
face
,
ItemType
::
cell
>
(
*
this
);
ItemType
::
cell
>
(
*
this
);
const
auto
&
face_to_node_matrix
=
m_item_to_item_matrix
[
itemId
(
ItemType
::
face
)][
itemId
(
ItemType
::
node
)];
#warning check that the number of cell per faces is <=2
#warning check that the number of cell per faces is <=2
std
::
unordered_map
<
unsigned
int
,
std
::
vector
<
unsigned
int
>>
node_faces_map
;
for
(
size_t
l
=
0
;
l
<
face_to_node_matrix
.
numRows
();
++
l
)
{
const
auto
&
face_nodes
=
face_to_node_matrix
.
rowConst
(
l
);
for
(
size_t
lr
=
0
;
lr
<
face_nodes
.
length
;
++
lr
)
{
const
unsigned
int
r
=
face_nodes
(
lr
);
node_faces_map
[
r
].
emplace_back
(
l
);
}
}
Kokkos
::
View
<
unsigned
short
*>
node_nb_faces
(
"node_nb_faces"
,
this
->
numberOfNodes
());
size_t
max_nb_face_per_node
=
0
;
for
(
auto
node_faces
:
node_faces_map
)
{
max_nb_face_per_node
=
std
::
max
(
node_faces
.
second
.
size
(),
max_nb_face_per_node
);
node_nb_faces
[
node_faces
.
first
]
=
node_faces
.
second
.
size
();
}
m_node_nb_faces
=
node_nb_faces
;
Kokkos
::
View
<
unsigned
int
**>
node_faces
(
"node_faces"
,
this
->
numberOfNodes
(),
max_nb_face_per_node
);
for
(
auto
node_faces_vector
:
node_faces_map
)
{
const
unsigned
int
r
=
node_faces_vector
.
first
;
const
std
::
vector
<
unsigned
int
>&
faces_vector
=
node_faces_vector
.
second
;
for
(
size_t
l
=
0
;
l
<
faces_vector
.
size
();
++
l
)
{
node_faces
(
r
,
l
)
=
faces_vector
[
l
];
}
}
m_node_faces
=
node_faces
;
}
}
template
<
>
template
<
>
...
...
This diff is collapsed.
Click to expand it.
src/mesh/Connectivity.hpp
+
0
−
3
View file @
d8613ba7
...
@@ -297,9 +297,6 @@ private:
...
@@ -297,9 +297,6 @@ private:
Kokkos
::
View
<
double
*>
m_inv_cell_nb_nodes
;
Kokkos
::
View
<
double
*>
m_inv_cell_nb_nodes
;
Kokkos
::
View
<
const
unsigned
short
*>
m_node_nb_faces
;
Kokkos
::
View
<
const
unsigned
int
**>
m_node_faces
;
using
Face
=
ConnectivityFace
<
Dimension
>
;
using
Face
=
ConnectivityFace
<
Dimension
>
;
std
::
unordered_map
<
Face
,
unsigned
int
,
typename
Face
::
Hash
>
m_face_number_map
;
std
::
unordered_map
<
Face
,
unsigned
int
,
typename
Face
::
Hash
>
m_face_number_map
;
...
...
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