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
fbd25212
Commit
fbd25212
authored
Jun 25, 2012
by
Matthias Messner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added overall rank counter in precomputation of 16 M2L kernels
parent
1fbf5161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
Src/Kernels/Chebyshev/FChebSymM2LHandler.hpp
Src/Kernels/Chebyshev/FChebSymM2LHandler.hpp
+13
-7
No files found.
Src/Kernels/Chebyshev/FChebSymM2LHandler.hpp
View file @
fbd25212
...
...
@@ -18,9 +18,9 @@
/*! Choose either \a FULLY_PIVOTED_ACASVD or \a PARTIALLY_PIVOTED_ACASVD or
\a ONLY_SVD.
*/
//
#define ONLY_SVD
#define ONLY_SVD
//#define FULLY_PIVOTED_ACASVD
#define PARTIALLY_PIVOTED_ACASVD
//
#define PARTIALLY_PIVOTED_ACASVD
...
...
@@ -240,7 +240,7 @@ void pACA(const ComputerType& Computer,
them. */
template
<
int
ORDER
,
typename
MatrixKernelClass
>
static
void
precompute
(
const
MatrixKernelClass
*
const
MatrixKernel
,
const
FReal
CellWidth
,
const
double
Epsilon
,
FReal
*
K
[
343
],
int
LowRank
[
343
])
const
FReal
Epsilon
,
FReal
*
K
[
343
],
int
LowRank
[
343
])
{
std
::
cout
<<
"
\n
Computing 16 far-field interactions for cells of width w = "
<<
CellWidth
<<
std
::
endl
;
...
...
@@ -263,8 +263,11 @@ static void precompute(const MatrixKernelClass *const MatrixKernel, const FReal
// initialize timer
FTic
time
;
FReal
overall_time
(
0.
);
FReal
elapsed_time
(
0.
);
double
overall_time
(
0.
);
double
elapsed_time
(
0.
);
// initialize rank counter
unsigned
int
overall_rank
=
0
;
unsigned
int
counter
=
0
;
for
(
int
i
=
2
;
i
<=
3
;
++
i
)
{
...
...
@@ -395,6 +398,7 @@ static void precompute(const MatrixKernelClass *const MatrixKernel, const FReal
elapsed_time
=
time
.
tacAndElapsed
();
overall_time
+=
elapsed_time
;
overall_rank
+=
rank
;
std
::
cout
<<
"("
<<
i
<<
","
<<
j
<<
","
<<
k
<<
") "
<<
idx
<<
", low rank = "
<<
rank
<<
" ("
<<
aca_rank
<<
") in "
<<
elapsed_time
<<
"s"
<<
std
::
endl
;
...
...
@@ -425,6 +429,7 @@ static void precompute(const MatrixKernelClass *const MatrixKernel, const FReal
elapsed_time
=
time
.
tacAndElapsed
();
overall_time
+=
elapsed_time
;
overall_rank
+=
rank
;
std
::
cout
<<
"("
<<
i
<<
","
<<
j
<<
","
<<
k
<<
") "
<<
idx
<<
", low rank = "
<<
rank
<<
" in "
<<
elapsed_time
<<
"s"
<<
std
::
endl
;
#else
...
...
@@ -453,7 +458,8 @@ static void precompute(const MatrixKernelClass *const MatrixKernel, const FReal
}
}
}
std
::
cout
<<
"The approximation of the "
<<
counter
<<
" far-field interactions took "
std
::
cout
<<
"The approximation of the "
<<
counter
<<
" far-field interactions (overall rank "
<<
overall_rank
<<
") took "
<<
overall_time
<<
"s
\n
"
<<
std
::
endl
;
delete
[]
U
;
delete
[]
WORK
;
...
...
@@ -499,7 +505,7 @@ public:
/** Constructor: with 16 small SVDs */
template
<
typename
MatrixKernelClass
>
SymmetryHandler
(
const
MatrixKernelClass
*
const
MatrixKernel
,
const
double
Epsilon
,
SymmetryHandler
(
const
MatrixKernelClass
*
const
MatrixKernel
,
const
FReal
Epsilon
,
const
FReal
,
const
unsigned
int
)
{
// init all 343 item to zero, because effectively only 16 exist
...
...
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