Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
b910c365
Commit
b910c365
authored
5 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing for Clang
parent
fdaecc21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
script/py/process_examples.py
+1
-1
1 addition, 1 deletion
script/py/process_examples.py
src/Vector/vector_dist_kernel.hpp
+8
-8
8 additions, 8 deletions
src/Vector/vector_dist_kernel.hpp
with
9 additions
and
9 deletions
script/py/process_examples.py
+
1
−
1
View file @
b910c365
...
...
@@ -7,7 +7,7 @@ from os import listdir
from
os.path
import
isdir
,
join
from
pack_examples
import
pack_example
parser
=
argparse
.
ArgumentParser
(
description
=
'
Pack the examples
, generate the vtk files to generate images, create the markdown pages for the wiki
'
)
parser
=
argparse
.
ArgumentParser
(
description
=
'
Pack the examples
'
)
parser
.
add_argument
(
'
directory
'
,
help
=
'
directory where are located the examples
'
)
args
=
parser
.
parse_args
()
...
...
This diff is collapsed.
Click to expand it.
src/Vector/vector_dist_kernel.hpp
+
8
−
8
View file @
b910c365
...
...
@@ -113,7 +113,7 @@ public:
* \return the position of the element in space
*
*/
__device__
inline
auto
getPos
(
int
vec_key
)
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
))
__device__
__host__
inline
auto
getPos
(
int
vec_key
)
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
))
{
return
v_pos
.
template
get
<
0
>(
vec_key
);
}
...
...
@@ -127,7 +127,7 @@ public:
* \return the position of the element in space
*
*/
__device__
inline
auto
getPos
(
const
vect_dist_key_dx
&
vec_key
)
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
()))
__device__
__host__
inline
auto
getPos
(
const
vect_dist_key_dx
&
vec_key
)
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
()))
{
return
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
());
}
...
...
@@ -141,7 +141,7 @@ public:
* \return the position of the element in space
*
*/
__device__
inline
auto
getPos
(
int
vec_key
)
const
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
))
__device__
__host__
inline
auto
getPos
(
int
vec_key
)
const
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
))
{
return
v_pos
.
template
get
<
0
>(
vec_key
);
}
...
...
@@ -155,7 +155,7 @@ public:
* \return the position of the element in space
*
*/
__device__
inline
auto
getPos
(
const
vect_dist_key_dx
&
vec_key
)
const
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
()))
__device__
__host__
inline
auto
getPos
(
const
vect_dist_key_dx
&
vec_key
)
const
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
()))
{
return
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
());
}
...
...
@@ -170,7 +170,7 @@ public:
* \return return the selected property of the vector element
*
*/
template
<
unsigned
int
id
>
__device__
inline
auto
getProp
(
int
vec_key
)
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
))
template
<
unsigned
int
id
>
__device__
__host__
inline
auto
getProp
(
int
vec_key
)
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
))
{
return
v_prp
.
template
get
<
id
>(
vec_key
);
}
...
...
@@ -185,7 +185,7 @@ public:
* \return return the selected property of the vector element
*
*/
template
<
unsigned
int
id
>
__device__
inline
auto
getProp
(
const
vect_dist_key_dx
&
vec_key
)
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
.
getKey
()))
template
<
unsigned
int
id
>
__device__
__host__
inline
auto
getProp
(
const
vect_dist_key_dx
&
vec_key
)
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
.
getKey
()))
{
return
v_prp
.
template
get
<
id
>(
vec_key
.
getKey
());
}
...
...
@@ -200,7 +200,7 @@ public:
* \return return the selected property of the vector element
*
*/
template
<
unsigned
int
id
>
__device__
inline
auto
getProp
(
int
vec_key
)
const
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
))
template
<
unsigned
int
id
>
__device__
__host__
inline
auto
getProp
(
int
vec_key
)
const
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
))
{
return
v_prp
.
template
get
<
id
>(
vec_key
);
}
...
...
@@ -215,7 +215,7 @@ public:
* \return return the selected property of the vector element
*
*/
template
<
unsigned
int
id
>
__device__
inline
auto
getProp
(
const
vect_dist_key_dx
&
vec_key
)
const
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
.
getKey
()))
template
<
unsigned
int
id
>
__device__
__host__
inline
auto
getProp
(
const
vect_dist_key_dx
&
vec_key
)
const
->
decltype
(
v_prp
.
template
get
<
id
>(
vec_key
.
getKey
()))
{
return
v_prp
.
template
get
<
id
>(
vec_key
.
getKey
());
}
...
...
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