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
d74e6aaa
Commit
d74e6aaa
authored
Aug 31, 2012
by
BRAMAS Berenger
Browse files
Juste indented the code
parent
5396fec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Containers/FOctree.hpp
View file @
d74e6aaa
...
...
@@ -857,12 +857,12 @@ public:
// reset
memset
(
inNeighbors
,
0
,
sizeof
(
CellClass
*
)
*
343
);
const
int
startX
=
(
testPeriodicCondition
(
inDirection
,
DirMinusX
)
||
parentCell
.
getX
()
!=
0
?-
1
:
0
);
const
int
endX
=
(
testPeriodicCondition
(
inDirection
,
DirPlusX
)
||
parentCell
.
getX
()
!=
boxLimite
-
1
?
1
:
0
);
const
int
startY
=
(
testPeriodicCondition
(
inDirection
,
DirMinusY
)
||
parentCell
.
getY
()
!=
0
?-
1
:
0
);
const
int
endY
=
(
testPeriodicCondition
(
inDirection
,
DirPlusY
)
||
parentCell
.
getY
()
!=
boxLimite
-
1
?
1
:
0
);
const
int
startZ
=
(
testPeriodicCondition
(
inDirection
,
DirMinusZ
)
||
parentCell
.
getZ
()
!=
0
?-
1
:
0
);
const
int
endZ
=
(
testPeriodicCondition
(
inDirection
,
DirPlusZ
)
||
parentCell
.
getZ
()
!=
boxLimite
-
1
?
1
:
0
);
const
int
startX
=
(
testPeriodicCondition
(
inDirection
,
DirMinusX
)
||
parentCell
.
getX
()
!=
0
?-
1
:
0
);
const
int
endX
=
(
testPeriodicCondition
(
inDirection
,
DirPlusX
)
||
parentCell
.
getX
()
!=
boxLimite
-
1
?
1
:
0
);
const
int
startY
=
(
testPeriodicCondition
(
inDirection
,
DirMinusY
)
||
parentCell
.
getY
()
!=
0
?-
1
:
0
);
const
int
endY
=
(
testPeriodicCondition
(
inDirection
,
DirPlusY
)
||
parentCell
.
getY
()
!=
boxLimite
-
1
?
1
:
0
);
const
int
startZ
=
(
testPeriodicCondition
(
inDirection
,
DirMinusZ
)
||
parentCell
.
getZ
()
!=
0
?-
1
:
0
);
const
int
endZ
=
(
testPeriodicCondition
(
inDirection
,
DirPlusZ
)
||
parentCell
.
getZ
()
!=
boxLimite
-
1
?
1
:
0
);
int
idxNeighbors
=
0
;
// We test all cells around
...
...
@@ -913,7 +913,7 @@ public:
// Test if it is a direct neighbor
if
(
FMath
::
Abs
(
xdiff
)
>
1
||
FMath
::
Abs
(
ydiff
)
>
1
||
FMath
::
Abs
(
zdiff
)
>
1
){
// add to neighbors
inNeighbors
[
(
(((
xdiff
+
3
)
*
7
)
+
(
ydiff
+
3
))
)
*
7
+
zdiff
+
3
]
=
cells
[
idxCousin
];
inNeighbors
[
(((
xdiff
+
3
)
*
7
)
+
(
ydiff
+
3
))
*
7
+
zdiff
+
3
]
=
cells
[
idxCousin
];
++
idxNeighbors
;
}
}
...
...
@@ -1004,6 +1004,7 @@ public:
*/
int
getPeriodicLeafsNeighbors
(
ContainerClass
*
inNeighbors
[
27
],
FTreeCoordinate
inOffsets
[
27
],
bool
*
const
isPeriodic
,
const
FTreeCoordinate
&
center
,
const
int
inLevel
,
const
int
inDirection
){
const
int
boxLimite
=
FMath
::
pow2
(
inLevel
);
if
(
center
.
getX
()
!=
0
&&
center
.
getY
()
!=
0
&&
center
.
getZ
()
!=
0
&&
...
...
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