Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
dd719eee
Commit
dd719eee
authored
Sep 10, 2014
by
PIACIBELLO Cyrille
Browse files
Merge branch 'master' of
git+ssh://scm.gforge.inria.fr//gitroot/scalfmm/scalfmm
parents
e003316f
65f06274
Changes
1
Hide whitespace changes
Inline
Side-by-side
Addons/CKernelApi/Src/CKernelApi.h
View file @
dd719eee
...
...
@@ -94,17 +94,17 @@ void Scalfmm_execute_kernel(Scalfmm_Handle handle, struct Scalfmm_Kernel_Descrip
//< This function fill the childFullPosition[3] with [0;1] to know the position of a child relatively to
//< its position from its parent
inline
void
Scalfmm_utils_parentChildPosition
(
int
childPosition
,
int
*
childFullPosition
){
childFullPosition
[
0
]
=
childPosition
%
2
;
childFullPosition
[
1
]
=
(
childPosition
/
2
)
%
2
;
childFullPosition
[
2
]
=
(
childPosition
/
4
)
%
2
;
childFullPosition
[
2
]
=
(
childPosition
%
2
?
1
:
-
1
)
;
childFullPosition
[
1
]
=
(
(
childPosition
/
2
)
%
2
?
1
:
-
1
)
;
childFullPosition
[
0
]
=
(
(
childPosition
/
4
)
%
2
?
1
:
-
1
)
;
}
//< This function fill the childFullPosition[3] with [-3;3] to know the position of a interaction
//< cell relatively to its position from the target
inline
void
Scalfmm_utils_interactionPosition
(
int
interactionPosition
,
int
*
srcPosition
){
srcPosition
[
0
]
=
interactionPosition
%
7
-
3
;
srcPosition
[
2
]
=
interactionPosition
%
7
-
3
;
srcPosition
[
1
]
=
(
interactionPosition
/
7
)
%
7
-
3
;
srcPosition
[
2
]
=
(
interactionPosition
/
49
)
%
7
-
3
;
srcPosition
[
0
]
=
(
interactionPosition
/
49
)
%
7
-
3
;
}
#endif // CKERNELAPI_H
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment