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
bc05cf97
Commit
bc05cf97
authored
May 12, 2016
by
Quentin Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FAdaptiveTask: inherit FAlgorithmInterface
parent
399b750e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
Src/Adaptive/new/FAdaptiveTask.hpp
Src/Adaptive/new/FAdaptiveTask.hpp
+25
-4
No files found.
Src/Adaptive/new/FAdaptiveTask.hpp
View file @
bc05cf97
...
...
@@ -22,7 +22,7 @@
#include "FTimer.hpp"
template
<
class
_Tree
,
class
_Kernel
>
class
FAdaptiveTask
{
class
FAdaptiveTask
:
public
FAlgorithmInterface
{
public:
using
tree_t
=
_Tree
;
using
kernel_t
=
_Kernel
;
...
...
@@ -166,15 +166,36 @@ public:
FAdaptiveTask
(
*
tree
,
*
kernel
)
{}
~
FAdaptiveTask
()
{
std
::
string
name
()
const
override
{
return
"Task adaptive algorithm"
;
}
void
execute
(
int
operations
=
FFmmNearAndFarFields
)
{
std
::
string
description
()
const
override
{
int
threads
=
1
;
#pragma omp parallel shared(threads)
{
#pragma omp single nowait
{
threads
=
omp_get_max_threads
();
}
}
return
std
::
string
(
"threads: "
)
+
std
::
to_string
(
threads
);
}
using
FAlgorithmInterface
::
execute
;
/**
* \brief Run specific steps of the algorithm
*
* \param operations Specifies the algorithm operations to run, see
* FFmmOperations.
*/
void
execute
(
const
unsigned
int
operations
)
override
{
this
->
run
(
operations
);
}
void
run
(
int
operations
=
FFmmNearAndFarFields
)
{
void
run
(
int
operations
)
{
#pragma omp parallel
{
...
...
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