Commit d4a7d779 authored by Quentin Khan's avatar Quentin Khan

FAdaptiveSequential: change setup_kernel argument to pointer (fixes warnings)

parent fd0f74a9
......@@ -35,12 +35,12 @@ private:
template<typename K, has_setup<K, void, tree_t> = nullptr>
void setup_kernel(K&) {
void setup_kernel(K*) {
_kernel.setup(_tree);
}
template<typename K, has_setup<K, void> = nullptr>
void setup_kernel(K&) {
void setup_kernel(K*) {
_kernel.setup();
}
......@@ -65,15 +65,26 @@ public:
FAdaptiveSequential(*tree, *kernel)
{}
void execute(int operations = FFmmNearAndFarFields) {
std::string name() const override {
return "Sequential adaptive algorithm";
}
std::string description() const override {
return "";
}
/** \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) {
std::cout << "Sequential algorithm" << std::endl;
this->setup_kernel(this->_kernel);
this->setup_kernel(&(this->_kernel));
if(operations & FFmmP2M) {
// 1. source to up, P2M
......
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