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
90d5dd91
Commit
90d5dd91
authored
Jan 26, 2016
by
BRAMAS Berenger
Browse files
oups forgot some comment
parent
975cbc06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/GroupTree/Cuda/FCudaDeviceWrapper.cu
View file @
90d5dd91
...
...
@@ -184,32 +184,22 @@ __global__ void FCuda__transferInPassPerform(unsigned char* currentCellsPtr, st
const
MortonIndex
blockStartIdx
=
currentCells
.
getStartingIndex
();
const
MortonIndex
blockEndIdx
=
currentCells
.
getEndingIndex
();
printf
(
"blockStartIdx %lld
\n
"
,
blockStartIdx
);
printf
(
"blockEndIdx %lld
\n
"
,
blockEndIdx
);
for
(
int
cellIdx
=
0
;
cellIdx
<
currentCells
.
getNumberOfCellsInBlock
()
;
++
cellIdx
){
typename
CellContainerClass
::
CompleteCellClass
cell
=
currentCells
.
getDownCell
(
cellIdx
);
printf
(
"cell.symb->mortonIndex %lld
\n
"
,
cell
.
symb
->
mortonIndex
);
printf
(
"currentCells.getCellMortonIndex(cellIdx) %lld
\n
"
,
currentCells
.
getCellMortonIndex
(
cellIdx
));
MortonIndex
interactionsIndexes
[
189
];
int
interactionsPosition
[
189
];
const
int3
coord
=
(
FCudaTreeCoordinate
::
ConvertCoordinate
(
cell
.
symb
->
coordinates
));
int
counter
=
FCudaTreeCoordinate
::
GetInteractionNeighbors
(
coord
,
idxLevel
,
interactionsIndexes
,
interactionsPosition
);
/// printf("counter %d\n", counter);
typename
CellContainerClass
::
CompleteCellClass
interactions
[
189
];
int
counterExistingCell
=
0
;
for
(
int
idxInter
=
0
;
idxInter
<
counter
;
++
idxInter
){
if
(
blockStartIdx
<=
interactionsIndexes
[
idxInter
]
&&
interactionsIndexes
[
idxInter
]
<
blockEndIdx
){
///printf("interactionsIndexes[%d] %lld\n", idxInter, interactionsIndexes[idxInter]);
const
int
cellPos
=
currentCells
.
getCellIndex
(
interactionsIndexes
[
idxInter
]);
///printf("cellPos %d\n", cellPos);
if
(
cellPos
!=
-
1
){
typename
CellContainerClass
::
CompleteCellClass
interCell
=
currentCells
.
getUpCell
(
cellPos
);
///printf("currentCells.getCellMortonIndex(cellIdx) %lld\n", interCell.symb->mortonIndex);
interactions
[
counterExistingCell
]
=
interCell
;
interactionsPosition
[
counterExistingCell
]
=
interactionsPosition
[
idxInter
];
counterExistingCell
+=
1
;
...
...
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