AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Assert.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 ASSERT_H_INCLUDED
25#define ASSERT_H_INCLUDED
26
27#include <CalcServer/Tool.h>
28
29namespace Aqua {
30namespace CalcServer {
31
41{
42 public:
50 Assert(const std::string name,
51 const std::string condition,
52 bool once = false);
53
55 ~Assert();
56
59 void setup();
60
61 protected:
66 cl_event _execute(const std::vector<cl_event> events);
67
68 private:
70 std::string _condition;
71};
72
73}
74} // namespace
75
76#endif // ASSERT_H_INCLUDED
Tools virtual environment to allow the user to define/manipulate the tools used to carry out the simu...
Check that a condition holds true, or trhow a fatal error otherwise.
Definition: Assert.h:41
~Assert()
Destructor.
Definition: Assert.cpp:40
void setup()
Initialize the tool.
Definition: Assert.cpp:43
cl_event _execute(const std::vector< cl_event > events)
Definition: Assert.cpp:52
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
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45