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
d1bd755e
Commit
d1bd755e
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Rename subItemIdPerItemMatrix() to itemToItemMatrix()
This gives a generic way to access to item connectivities
parent
4c08be52
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.hpp
+7
-7
7 additions, 7 deletions
src/mesh/Connectivity.hpp
src/scheme/SubItemValuePerItem.hpp
+1
-1
1 addition, 1 deletion
src/scheme/SubItemValuePerItem.hpp
with
8 additions
and
8 deletions
src/mesh/Connectivity.hpp
+
7
−
7
View file @
d1bd755e
...
...
@@ -239,7 +239,7 @@ public:
template
<
TypeOfItem
SubItemType
,
TypeOfItem
ItemType
>
const
ConnectivityMatrix
&
subItemIdPer
ItemMatrix
()
const
=
delete
;
const
ConnectivityMatrix
&
itemTo
ItemMatrix
()
const
=
delete
;
private:
ConnectivityComputer
m_connectivity_computer
;
...
...
@@ -364,8 +364,8 @@ using Connectivity3D = Connectivity<3>;
template
<
>
template
<
>
inline
const
ConnectivityMatrix
&
Connectivity
<
3
>::
subItemIdPer
ItemMatrix
<
TypeOfItem
::
node
,
TypeOfItem
::
cell
>
()
const
Connectivity
<
3
>::
itemTo
ItemMatrix
<
TypeOfItem
::
cell
,
TypeOfItem
::
node
>
()
const
{
return
m_cell_to_node_matrix
;
}
...
...
@@ -375,8 +375,8 @@ using Connectivity2D = Connectivity<2>;
template
<
>
template
<
>
inline
const
ConnectivityMatrix
&
Connectivity
<
2
>::
subItemIdPer
ItemMatrix
<
TypeOfItem
::
node
,
TypeOfItem
::
cell
>
()
const
Connectivity
<
2
>::
itemTo
ItemMatrix
<
TypeOfItem
::
cell
,
TypeOfItem
::
node
>
()
const
{
return
m_cell_to_node_matrix
;
}
...
...
@@ -386,8 +386,8 @@ using Connectivity1D = Connectivity<1>;
template
<
>
template
<
>
inline
const
ConnectivityMatrix
&
Connectivity
<
1
>::
subItemIdPer
ItemMatrix
<
TypeOfItem
::
node
,
TypeOfItem
::
cell
>
()
const
Connectivity
<
1
>::
itemTo
ItemMatrix
<
TypeOfItem
::
cell
,
TypeOfItem
::
node
>
()
const
{
return
m_cell_to_node_matrix
;
}
...
...
This diff is collapsed.
Click to expand it.
src/scheme/SubItemValuePerItem.hpp
+
1
−
1
View file @
d1bd755e
...
...
@@ -165,7 +165,7 @@ class SubItemValuePerItem
SubItemValuePerItem
(
const
ConnectivityType
&
connectivity
)
{
ConnectivityMatrix
connectivity_matrix
=
connectivity
.
template
subItemIdPer
ItemMatrix
<
Sub
ItemType
,
ItemType
>();
=
connectivity
.
template
itemTo
ItemMatrix
<
ItemType
,
Sub
ItemType
>();
m_host_row_map
=
connectivity_matrix
.
rowsMap
();
m_values
=
Kokkos
::
View
<
DataType
*>
(
"values"
,
connectivity_matrix
.
numEntries
());
}
...
...
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