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
f0b5a23a
Commit
f0b5a23a
authored
7 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Added faces to 1d connectivity
parent
81eb6afa
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!2
Develop
,
!1
Develop
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
experimental/Connectivity1D.hpp
+41
-3
41 additions, 3 deletions
experimental/Connectivity1D.hpp
experimental/Mesh.hpp
+5
-0
5 additions, 0 deletions
experimental/Mesh.hpp
with
46 additions
and
3 deletions
experimental/Connectivity1D.hpp
+
41
−
3
View file @
f0b5a23a
...
@@ -11,12 +11,20 @@ public:
...
@@ -11,12 +11,20 @@ public:
private:
private:
const
size_t
m_number_of_cells
;
const
size_t
m_number_of_cells
;
const
size_t
&
m_number_of_faces
;
const
size_t
m_number_of_nodes
;
const
size_t
m_number_of_nodes
;
Kokkos
::
View
<
unsigned
int
*
[
2
]
>
m_cell_nodes
;
Kokkos
::
View
<
unsigned
int
*
[
2
]
>
m_cell_nodes
;
const
Kokkos
::
View
<
unsigned
int
*
[
2
]
>&
m_cell_faces
;
Kokkos
::
View
<
unsigned
short
*>
m_node_nb_cells
;
Kokkos
::
View
<
unsigned
short
*>
m_node_nb_cells
;
const
Kokkos
::
View
<
unsigned
short
*>&
m_face_nb_cells
;
Kokkos
::
View
<
unsigned
int
*
[
2
]
>
m_node_cells
;
Kokkos
::
View
<
unsigned
int
*
[
2
]
>
m_node_cells
;
const
Kokkos
::
View
<
unsigned
int
*
[
2
]
>&
m_face_cells
;
Kokkos
::
View
<
unsigned
short
*
[
2
]
>
m_node_cell_local_node
;
Kokkos
::
View
<
unsigned
short
*
[
2
]
>
m_node_cell_local_node
;
const
Kokkos
::
View
<
unsigned
short
*
[
2
]
>&
m_face_cell_local_face
;
public:
public:
const
size_t
&
numberOfNodes
()
const
const
size_t
&
numberOfNodes
()
const
...
@@ -24,6 +32,11 @@ public:
...
@@ -24,6 +32,11 @@ public:
return
m_number_of_nodes
;
return
m_number_of_nodes
;
}
}
const
size_t
&
numberOfFaces
()
const
{
return
m_number_of_faces
;
}
const
size_t
&
numberOfCells
()
const
const
size_t
&
numberOfCells
()
const
{
{
return
m_number_of_cells
;
return
m_number_of_cells
;
...
@@ -34,30 +47,55 @@ public:
...
@@ -34,30 +47,55 @@ public:
return
m_cell_nodes
;
return
m_cell_nodes
;
}
}
const
Kokkos
::
View
<
const
unsigned
int
*
[
2
]
>
cellFaces
()
const
{
return
m_cell_faces
;
}
const
Kokkos
::
View
<
const
unsigned
short
*>
nodeNbCells
()
const
const
Kokkos
::
View
<
const
unsigned
short
*>
nodeNbCells
()
const
{
{
return
m_node_nb_cells
;
return
m_node_nb_cells
;
}
}
const
Kokkos
::
View
<
const
unsigned
short
*>
faceNbCells
()
const
{
return
m_face_nb_cells
;
}
const
Kokkos
::
View
<
const
unsigned
int
*
[
2
]
>
nodeCells
()
const
const
Kokkos
::
View
<
const
unsigned
int
*
[
2
]
>
nodeCells
()
const
{
{
return
m_node_cells
;
return
m_node_cells
;
}
}
const
Kokkos
::
View
<
const
unsigned
int
*
[
2
]
>
faceCells
()
const
{
return
m_face_cells
;
}
const
Kokkos
::
View
<
const
unsigned
short
*
[
2
]
>
nodeCellLocalNode
()
const
const
Kokkos
::
View
<
const
unsigned
short
*
[
2
]
>
nodeCellLocalNode
()
const
{
{
return
m_node_cell_local_node
;
return
m_node_cell_local_node
;
}
}
const
Kokkos
::
View
<
const
unsigned
short
*
[
2
]
>
faceCellLocalFace
()
const
{
return
m_face_cell_local_face
;
}
Connectivity1D
(
const
Connectivity1D
&
)
=
delete
;
Connectivity1D
(
const
Connectivity1D
&
)
=
delete
;
Connectivity1D
(
const
size_t
&
number_of_cells
)
Connectivity1D
(
const
size_t
&
number_of_cells
)
:
m_number_of_cells
(
number_of_cells
),
:
m_number_of_cells
(
number_of_cells
),
m_number_of_faces
(
m_number_of_nodes
),
m_number_of_nodes
(
number_of_cells
+
1
),
m_number_of_nodes
(
number_of_cells
+
1
),
m_cell_nodes
(
"cell_nodes"
,
m_number_of_cells
),
m_cell_nodes
(
"cell_nodes"
,
m_number_of_cells
),
m_cell_faces
(
m_cell_nodes
),
m_node_nb_cells
(
"node_nb_cells"
,
m_number_of_nodes
),
m_node_nb_cells
(
"node_nb_cells"
,
m_number_of_nodes
),
m_face_nb_cells
(
m_node_nb_cells
),
m_node_cells
(
"node_cells"
,
m_number_of_nodes
),
m_node_cells
(
"node_cells"
,
m_number_of_nodes
),
m_node_cell_local_node
(
"node_cell_local_node"
,
m_number_of_nodes
)
m_face_cells
(
m_node_cells
),
m_node_cell_local_node
(
"node_cell_local_node"
,
m_number_of_nodes
),
m_face_cell_local_face
(
m_node_cell_local_node
)
{
{
assert
(
number_of_cells
>
0
);
assert
(
number_of_cells
>
0
);
...
...
This diff is collapsed.
Click to expand it.
experimental/Mesh.hpp
+
5
−
0
View file @
f0b5a23a
...
@@ -28,6 +28,11 @@ public:
...
@@ -28,6 +28,11 @@ public:
return
m_connectivity
.
numberOfNodes
();
return
m_connectivity
.
numberOfNodes
();
}
}
const
size_t
&
numberOfFaces
()
const
{
return
m_connectivity
.
numberOfFaces
();
}
const
size_t
&
numberOfCells
()
const
const
size_t
&
numberOfCells
()
const
{
{
return
m_connectivity
.
numberOfCells
();
return
m_connectivity
.
numberOfCells
();
...
...
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