Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argupta
openfpm_numerics
Commits
91947e21
Commit
91947e21
authored
Apr 15, 2016
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing getPos
parent
f94c71e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/PSE/Kernels_test_util.hpp
src/PSE/Kernels_test_util.hpp
+4
-4
No files found.
src/PSE/Kernels_test_util.hpp
View file @
91947e21
...
@@ -95,9 +95,9 @@ template<typename T, typename Kernel> void PSE_test(size_t Npart, size_t overlap
...
@@ -95,9 +95,9 @@ template<typename T, typename Kernel> void PSE_test(size_t Npart, size_t overlap
auto
key
=
it2
.
get
();
auto
key
=
it2
.
get
();
// set the position of the particles
// set the position of the particles
vd
.
template
getPos
<
0
>
(
key
)[
0
]
=
0.448000
-
((
long
int
)
key
.
getKey
()
-
mp
)
*
spacing
;
vd
.
getPos
(
key
)[
0
]
=
0.448000
-
((
long
int
)
key
.
getKey
()
-
mp
)
*
spacing
;
//set the property of the particles
//set the property of the particles
vd
.
template
getProp
<
0
>(
key
)
=
f_xex2
(
vd
.
template
getPos
<
0
>
(
key
)[
0
]);
vd
.
template
getProp
<
0
>(
key
)
=
f_xex2
(
vd
.
getPos
(
key
)[
0
]);
++
it2
;
++
it2
;
}
}
...
@@ -115,7 +115,7 @@ template<typename T, typename Kernel> void PSE_test(size_t Npart, size_t overlap
...
@@ -115,7 +115,7 @@ template<typename T, typename Kernel> void PSE_test(size_t Npart, size_t overlap
T
pse
=
0
;
T
pse
=
0
;
// Get the position of the particle
// Get the position of the particle
Point
<
1
,
T
>
p
=
vd
.
template
getPos
<
0
>
(
key
);
Point
<
1
,
T
>
p
=
vd
.
getPos
(
key
);
// Get f(x) at the position of the particle
// Get f(x) at the position of the particle
T
prp_x
=
vd
.
template
getProp
<
0
>(
key
);
T
prp_x
=
vd
.
template
getProp
<
0
>(
key
);
...
@@ -131,7 +131,7 @@ template<typename T, typename Kernel> void PSE_test(size_t Npart, size_t overlap
...
@@ -131,7 +131,7 @@ template<typename T, typename Kernel> void PSE_test(size_t Npart, size_t overlap
if
(
nnp
!=
key
.
getKey
())
if
(
nnp
!=
key
.
getKey
())
{
{
// W(x-y)
// W(x-y)
T
ker
=
lker
.
value
(
p
,
vd
.
template
getPos
<
0
>
(
nnp
));
T
ker
=
lker
.
value
(
p
,
vd
.
getPos
(
nnp
));
// f(y)
// f(y)
T
prp_y
=
vd
.
template
getProp
<
0
>(
nnp
);
T
prp_y
=
vd
.
template
getProp
<
0
>(
nnp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment