Commit 5a859df6 authored by Quentin Khan's avatar Quentin Khan
Browse files

FFAlgorithmSectionTask: add missing #includes and interface methods

parent 12b10eea
......@@ -16,10 +16,12 @@
#ifndef FFMMALGORITHMSECTIONTASK_HPP
#define FFMMALGORITHMSECTIONTASK_HPP
#include <omp.h>
#include "../Utils/FGlobal.hpp"
#include "../Utils/FAssert.hpp"
#include "../Utils/FLog.hpp"
#include "../Utils/FAlgorithmTimers.hpp"
#include "../Utils/FTic.hpp"
#include "../Utils/FEnv.hpp"
......@@ -100,6 +102,22 @@ public:
delete [] this->kernels;
}
std::string name() const override {
return "Sectionned task adaptive algorithm";
}
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);
}
protected:
/**
* To execute the fmm algorithm
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment