AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Dump.hpp
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
23
24#pragma once
25
27#include "Report.hpp"
28
29namespace Aqua {
30namespace CalcServer {
31namespace Reports {
32
40{
41 public:
49 Dump(const std::string tool_name,
50 const std::string fields,
51 const std::string output_file,
52 bool binary=false);
53
56 ~Dump();
57
60 void setup();
61
66 void print();
67
68 protected:
73 cl_event _execute(const std::vector<cl_event> events);
74
80 std::vector<cl_event> download(std::vector<InputOutput::Variable*> vars);
81
82 private:
84 std::string _output_file;
85
87 bool _binary;
88
90 std::vector<void*> _data;
91
93 size_t _n;
94};
95
96}
97}
98} // namespace
Runtime output base class. (See Aqua::CalcServer::Reports::Report for details)
cl_event _execute(const std::vector< cl_event > events)
Definition Dump.cpp:202
void print()
Definition Dump.cpp:90
~Dump()
Destructor.
Definition Dump.cpp:47
Dump(const std::string tool_name, const std::string fields, const std::string output_file, bool binary=false)
Constructor.
Definition Dump.cpp:36
void setup()
Initialize the tool.
Definition Dump.cpp:56
std::vector< cl_event > download(std::vector< InputOutput::Variable * > vars)
Definition Dump.cpp:277
Runtime outputs base class.
Definition Report.hpp:50
__kernel void fields(__global const unsigned int *iset, __global const uint *isplit, __global const usize *mybuffer, __global const unsigned int *ilevel, __global const float *split_weight, __global float *m0, __global float *m, __global vec *r, __global vec *u, __global vec *dudt, __global float *rho, __global float *drhodt, __constant float *dr_level0, usize N, LINKLIST_LOCAL_PARAMS)
Collect the children, and the seed itself, in order to compute the field values of the buffer partner...
Definition Coalesce.cl:426
Runtime outputs name space.
Definition Dump.cpp:34
Calculation server name space.
Definition Assert.cpp:32
Main AQUAgpusph namespace.
Definition ArgumentsManager.cpp:50
Set of definitions and macros related with the implementation.