Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
64e09b61
Commit
64e09b61
authored
Apr 27, 2015
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass nullptr if size is zero in dyn block
parent
f878449a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
Src/GroupTree/Core/FGroupOfParticlesDyn.hpp
Src/GroupTree/Core/FGroupOfParticlesDyn.hpp
+10
-6
No files found.
Src/GroupTree/Core/FGroupOfParticlesDyn.hpp
View file @
64e09b61
...
...
@@ -248,8 +248,8 @@ public:
for
(
int
idxLeafPtr
=
0
;
idxLeafPtr
<
blockHeader
->
blockIndexesTableSize
;
++
idxLeafPtr
){
if
(
blockIndexesTable
[
idxLeafPtr
]
!=
LeafIsEmptyFlag
){
const
int
id
=
blockIndexesTable
[
idxLeafPtr
];
ParticlesAttachedClass
leaf
(
symbPart
+
leafHeader
[
id
].
offSetSymb
,
(
downPart
?
downPart
+
leafHeader
[
id
].
offSetDown
:
nullptr
)
);
ParticlesAttachedClass
leaf
(
(
leafHeader
[
id
].
sizeSymb
?
symbPart
+
leafHeader
[
id
].
offSetSymb
:
nullptr
)
,
(
downPart
&&
leafHeader
[
id
].
sizeDown
?
downPart
+
leafHeader
[
id
].
offSetDown
:
nullptr
)
);
function
(
&
leaf
);
}
}
...
...
@@ -261,8 +261,8 @@ public:
ParticlesAttachedClass
getLeaf
(
const
MortonIndex
leafIndex
){
if
(
blockIndexesTable
[
leafIndex
-
blockHeader
->
startingIndex
]
!=
LeafIsEmptyFlag
){
const
int
id
=
blockIndexesTable
[
leafIndex
-
blockHeader
->
startingIndex
];
return
ParticlesAttachedClass
(
symbPart
+
leafHeader
[
id
].
offSetSymb
,
(
downPart
?
downPart
+
leafHeader
[
id
].
offSetDown
:
nullptr
)
);
return
ParticlesAttachedClass
(
(
leafHeader
[
id
].
sizeSymb
?
symbPart
+
leafHeader
[
id
].
offSetSymb
:
nullptr
)
,
(
downPart
&&
leafHeader
[
id
].
sizeDown
?
downPart
+
leafHeader
[
id
].
offSetDown
:
nullptr
)
);
}
return
ParticlesAttachedClass
();
}
...
...
@@ -271,7 +271,9 @@ public:
unsigned
char
*
getLeafSymbBuffer
(
const
MortonIndex
leafIndex
){
if
(
blockIndexesTable
[
leafIndex
-
blockHeader
->
startingIndex
]
!=
LeafIsEmptyFlag
){
const
int
id
=
blockIndexesTable
[
leafIndex
-
blockHeader
->
startingIndex
];
return
(
symbPart
+
leafHeader
[
id
].
offSetSymb
);
if
(
leafHeader
[
id
].
sizeSymb
){
return
(
symbPart
+
leafHeader
[
id
].
offSetSymb
);
}
}
return
nullptr
;
}
...
...
@@ -280,7 +282,9 @@ public:
unsigned
char
*
getLeafDownBuffer
(
const
MortonIndex
leafIndex
){
if
(
blockIndexesTable
[
leafIndex
-
blockHeader
->
startingIndex
]
!=
LeafIsEmptyFlag
){
const
int
id
=
blockIndexesTable
[
leafIndex
-
blockHeader
->
startingIndex
];
return
(
downPart
?
downPart
+
leafHeader
[
id
].
offSetDown
:
nullptr
);
if
(
leafHeader
[
id
].
sizeDown
){
return
(
downPart
?
downPart
+
leafHeader
[
id
].
offSetDown
:
nullptr
);
}
}
return
nullptr
;
}
...
...
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