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
b4770039
Commit
b4770039
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Fix g++ build
parent
d1718327
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/IConnectivity.hpp
+28
-28
28 additions, 28 deletions
src/mesh/IConnectivity.hpp
src/mesh/ValuePerItem.hpp
+1
-15
1 addition, 15 deletions
src/mesh/ValuePerItem.hpp
with
29 additions
and
43 deletions
src/mesh/IConnectivity.hpp
+
28
−
28
View file @
b4770039
...
...
@@ -18,37 +18,37 @@ struct IConnectivity
template
<
ItemType
item_type
>
size_t
numberOf
()
const
=
delete
;
IConnectivity
()
=
default
;
IConnectivity
(
const
IConnectivity
&
)
=
delete
;
~
IConnectivity
()
=
default
;
};
template
<
>
KOKKOS_INLINE_FUNCTION
size_t
numberOf
<
ItemType
::
node
>
()
const
size_t
IConnectivity
::
numberOf
<
ItemType
::
node
>
()
const
{
return
this
->
numberOfNodes
();
}
template
<
>
KOKKOS_INLINE_FUNCTION
size_t
numberOf
<
ItemType
::
edge
>
()
const
size_t
IConnectivity
::
numberOf
<
ItemType
::
edge
>
()
const
{
return
this
->
numberOfEdges
();
}
template
<
>
KOKKOS_INLINE_FUNCTION
size_t
numberOf
<
ItemType
::
face
>
()
const
size_t
IConnectivity
::
numberOf
<
ItemType
::
face
>
()
const
{
return
this
->
numberOfFaces
();
}
template
<
>
KOKKOS_INLINE_FUNCTION
size_t
numberOf
<
ItemType
::
cell
>
()
const
size_t
IConnectivity
::
numberOf
<
ItemType
::
cell
>
()
const
{
return
this
->
numberOfCells
();
}
IConnectivity
()
=
default
;
IConnectivity
(
const
IConnectivity
&
)
=
delete
;
~
IConnectivity
()
=
default
;
};
#endif // ICONNECTIVITY_HPP
This diff is collapsed.
Click to expand it.
src/mesh/ValuePerItem.hpp
+
1
−
15
View file @
b4770039
...
...
@@ -29,13 +29,6 @@ class ValuePerItem
return
m_is_built
;
}
KOKKOS_FORCEINLINE_FUNCTION
DataType
&
operator
()(
const
size_t
&
j
)
{
Assert
(
m_is_built
);
return
m_values
(
j
);
}
// Following Kokkos logic, these classes are view and const view does allow
// changes in data
KOKKOS_FORCEINLINE_FUNCTION
...
...
@@ -52,13 +45,6 @@ class ValuePerItem
return
m_values
.
extent
(
0
);
}
KOKKOS_FORCEINLINE_FUNCTION
DataType
&
operator
[](
const
size_t
&
i
)
{
Assert
(
m_is_built
);
return
m_values
[
i
];
}
// Following Kokkos logic, these classes are view and const view does allow
// changes in data
KOKKOS_FORCEINLINE_FUNCTION
...
...
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