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
112121f9
Commit
112121f9
authored
Dec 10, 2015
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oups change height by idxleve
parent
619d5875
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Addons/HMat/Tests/testCompareClusteringRank.cpp
Addons/HMat/Tests/testCompareClusteringRank.cpp
+3
-3
No files found.
Addons/HMat/Tests/testCompareClusteringRank.cpp
View file @
112121f9
...
...
@@ -46,16 +46,16 @@ void CheckRank(const FClusterTree<double>& ctree, MatrixClass& matrix,
std
::
unique_ptr
<
int
[]
>
permutationOrgToNew
(
new
int
[
dim
]);
for
(
int
idxLevel
=
1
;
idxLevel
<
height
;
++
idxLevel
){
const
int
nbPartitions
=
FMath
::
pow2
(
height
-
1
);
const
int
nbPartitions
=
FMath
::
pow2
(
idxLevel
);
std
::
unique_ptr
<
int
[]
>
partitions
(
new
int
[
nbPartitions
]);
ctree
.
getPartitions
(
height
,
nbPartitions
,
partitions
.
get
());
ctree
.
getPartitions
(
idxLevel
+
1
,
nbPartitions
,
partitions
.
get
());
ctree
.
fillPermutations
(
permutationOrgToNew
.
get
());
matrix
.
setPermutOrigToNew
(
permutationOrgToNew
.
get
());
std
::
cout
<<
"
\t
Level "
<<
idxLevel
<<
" build blocks
\n
"
;
FTic
timer
;
GridClass
grid
(
dim
,
height
,
partitions
.
get
(),
nbPartitions
);
GridClass
grid
(
dim
,
idxLevel
+
1
,
partitions
.
get
(),
nbPartitions
);
grid
.
fillBlocks
(
matrix
);
std
::
cout
<<
"
\t
done in "
<<
timer
.
tacAndElapsed
()
<<
"s
\n
"
;
...
...
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