Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
57b14e95
Commit
57b14e95
authored
May 16, 2014
by
COULAUD Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor - 112s) in 112 s)
parent
0d34faed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Examples/ChebyshevInterpolationAlgorithm.cpp
Examples/ChebyshevInterpolationAlgorithm.cpp
+3
-3
Examples/RotationFMM.cpp
Examples/RotationFMM.cpp
+4
-4
No files found.
Examples/ChebyshevInterpolationAlgorithm.cpp
View file @
57b14e95
...
...
@@ -48,7 +48,7 @@
//!
//! This code is a short example to use the Chebyshev Interpolation approach for the 1/r kernel
//!
//!
//!
@Algorithm
//! <b> General arguments:</b>
//! \param -help(-h) to see the parameters available in this driver
//! \param -depth The depth of the octree
...
...
@@ -149,7 +149,7 @@ int main(int argc, char* argv[])
time
.
tac
();
std
::
cout
<<
"Done "
<<
"(@Creating and Inserting Particles = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
<<
time
.
elapsed
()
<<
"
s)
."
<<
std
::
endl
;
}
// -----------------------------------------------------
{
// -----------------------------------------------------
...
...
@@ -164,7 +164,7 @@ int main(int argc, char* argv[])
algorithm
.
execute
();
// Here the call of the FMM algorithm
//
time
.
tac
();
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"
s)
."
<<
std
::
endl
;
}
// -----------------------------------------------------
//
...
...
Examples/RotationFMM.cpp
View file @
57b14e95
...
...
@@ -80,7 +80,7 @@ int main(int argc, char* argv[])
exit
(
-
1
);
}
#ifdef _OPENMP
omp_set_num_threads
(
NbThreads
);
omp_set_num_threads
(
NbThreads
)
;
std
::
cout
<<
"
\n
>> Using "
<<
omp_get_max_threads
()
<<
" threads.
\n
"
<<
std
::
endl
;
#else
std
::
cout
<<
"
\n
>> Sequential version.
\n
"
<<
std
::
endl
;
...
...
@@ -145,7 +145,7 @@ int main(int argc, char* argv[])
time
.
tac
();
std
::
cout
<<
"Done "
<<
"(@Creating and Inserting Particles = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
<<
time
.
elapsed
()
<<
"
s)
."
<<
std
::
endl
;
}
// -----------------------------------------------------
{
// -----------------------------------------------------
...
...
@@ -157,12 +157,12 @@ int main(int argc, char* argv[])
//
KernelClass
*
kernels
=
new
KernelClass
(
TreeHeight
,
loader
.
getBoxWidth
(),
loader
.
getCenterOfBox
());
//
FmmClass
algorithm
(
&
tree
,
kernels
);
FmmClass
algorithm
(
&
tree
,
kernels
)
;
//
algorithm
.
execute
();
// Here the call of the FMM algorithm
//
time
.
tac
();
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"
s)
."
<<
std
::
endl
;
}
// -----------------------------------------------------
//
...
...
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