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
755473e3
Commit
755473e3
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add data_type to SubItemValuePerItem and SubItemValuePerItem::SubView
This allows to use ArrayUtils method on their instances
parent
a821bb71
No related branches found
No related tags found
1 merge request
!7
Feature/itemvalue
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh/SubItemValuePerItem.hpp
+7
-0
7 additions, 0 deletions
src/mesh/SubItemValuePerItem.hpp
with
7 additions
and
0 deletions
src/mesh/SubItemValuePerItem.hpp
+
7
−
0
View file @
755473e3
...
@@ -27,6 +27,9 @@ class SubItemValuePerItem<DataType,
...
@@ -27,6 +27,9 @@ class SubItemValuePerItem<DataType,
public:
public:
static
const
ItemType
item_t
{
item_type
};
static
const
ItemType
item_t
{
item_type
};
static
const
ItemType
sub_item_t
{
sub_item_type
};
static
const
ItemType
sub_item_t
{
sub_item_type
};
using
data_type
=
DataType
;
private
:
private
:
bool
m_is_built
{
false
};
bool
m_is_built
{
false
};
...
@@ -41,9 +44,13 @@ class SubItemValuePerItem<DataType,
...
@@ -41,9 +44,13 @@ class SubItemValuePerItem<DataType,
public
:
public
:
class
SubView
class
SubView
{
{
public:
using
data_type
=
DataType
;
private:
private:
KOKKOS_RESTRICT
DataType
*
const
m_sub_values
;
KOKKOS_RESTRICT
DataType
*
const
m_sub_values
;
const
size_t
m_size
;
const
size_t
m_size
;
public:
public:
KOKKOS_INLINE_FUNCTION
KOKKOS_INLINE_FUNCTION
const
DataType
&
operator
[](
const
size_t
&
i
)
const
const
DataType
&
operator
[](
const
size_t
&
i
)
const
...
...
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