AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
SetScalar.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 SETSCALAR_H_INCLUDED
25#define SETSCALAR_H_INCLUDED
26
27#include <CalcServer.h>
28#include <CalcServer/Tool.h>
29
30namespace Aqua {
31namespace CalcServer {
32
37{
38 public:
45 SetScalar(const std::string name,
46 const std::string var_name,
47 const std::string value,
48 bool once = false);
49
51 ~SetScalar();
52
55 void setup();
56
57 protected:
62 cl_event _execute(const std::vector<cl_event> events);
63
64 private:
67 void variable();
68
70 std::string _var_name;
72 std::string _value;
73
76};
77
78}
79} // namespace
80
81#endif // SETSCALAR_H_INCLUDED
The calculation main entry point. (See Aqua::CalcServer::CalcServer for details)
Tools virtual environment to allow the user to define/manipulate the tools used to carry out the simu...
Set a scalar variable.
Definition: SetScalar.h:37
cl_event _execute(const std::vector< cl_event > events)
Definition: SetScalar.cpp:56
void setup()
Initialize the tool.
Definition: SetScalar.cpp:45
~SetScalar()
Destructor.
Definition: SetScalar.cpp:42
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
A generic variable. Almost useless, use the overloaded classes instead of this one.
Definition: Variable.h:52
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45