Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
e402b8c0
Commit
e402b8c0
authored
Jan 17, 2014
by
BRAMAS Berenger
Browse files
Remove a potential bug in Periodic, need more tests
parent
3754543f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Core/FFmmAlgorithmPeriodic.hpp
View file @
e402b8c0
...
...
@@ -541,9 +541,9 @@ public:
const
CellClass
*
neighbors
[
343
];
memset
(
neighbors
,
0
,
sizeof
(
CellClass
*
)
*
343
);
int
counter
=
0
;
for
(
int
idxX
=
-
2
;
idxX
<=
1
;
++
idxX
){
for
(
int
idxY
=
-
2
;
idxY
<=
1
;
++
idxY
){
for
(
int
idxZ
=
-
2
;
idxZ
<=
1
;
++
idxZ
){
for
(
int
idxX
=
-
3
;
idxX
<=
2
;
++
idxX
){
for
(
int
idxY
=
-
3
;
idxY
<=
2
;
++
idxY
){
for
(
int
idxZ
=
-
3
;
idxZ
<=
2
;
++
idxZ
){
if
(
FMath
::
Abs
(
idxX
)
>
1
||
FMath
::
Abs
(
idxY
)
>
1
||
FMath
::
Abs
(
idxZ
)
>
1
){
neighbors
[
neighIndex
(
idxX
,
idxY
,
idxZ
)]
=
&
upperCells
[
idxUpperLevel
-
1
];
++
counter
;
...
...
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