AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Copy.h
Go to the documentation of this file.
1/*
2 * This file is part of AQUAgpusph, a free CFD program based on SPH.
3 * Copyright (C) 2012 Jose Luis Cercos Pita <jl.cercos@upm.es>
4 *
5 * AQUAgpusph is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * AQUAgpusph is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with AQUAgpusph. If not, see <http://www.gnu.org/licenses/>.
17 */
18
24#ifndef COPY_H_INCLUDED
25#define COPY_H_INCLUDED
26
27#include <CalcServer/Kernel.h>
28
29namespace Aqua {
30namespace CalcServer {
31
36{
37 public:
44 Copy(const std::string name,
45 const std::string input_name,
46 const std::string output_name,
47 bool once = false);
48
51 ~Copy();
52
55 void setup();
56
57 protected:
62 cl_event _execute(const std::vector<cl_event> events);
63
64 private:
67 void variables();
68
70 std::string _input_name;
72 std::string _output_name;
73
77 InputOutput::ArrayVariable* _output_var;
78};
79
80}
81} // namespace
82
83#endif // COPY_H_INCLUDED
Copy an array component by component.
Definition: Copy.h:36
cl_event _execute(const std::vector< cl_event > events)
Definition: Copy.cpp:62
~Copy()
Definition: Copy.cpp:48
void setup()
Definition: Copy.cpp:51
Tools base class. The way that AQUAgpusph compute each problem is set through a set of tools that are...
Definition: Tool.h:46
const std::string name()
Definition: Tool.h:66
Definition: Variable.h:700
OpenCL kernel kernel based tool. (see Aqua::CalcServer::Kernel for details)
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45