24#ifndef PARTICLES_H_INCLUDED
25#define PARTICLES_H_INCLUDED
33namespace InputOutput {
73 const std::string
file() {
return _output_file; }
78 unsigned int n() {
return _bounds.y - _bounds.x; }
99 void n(
unsigned int n) { _bounds.y = _bounds.x +
n; }
110 const unsigned int setId()
const {
return _iset; }
135 unsigned int file(
const std::string basename,
136 unsigned int start_index,
137 unsigned int digits = 5);
150 void clearList(std::vector<void*>* data);
162 std::string _output_file;
#define uivec2
Definition: LinkList.hcl.in:29
Simulation configuration data structures. (See Aqua::InputOutput::ProblemSetup for details)
Particles file loader/saver base class.
Definition: Particles.h:52
std::vector< void * > download(std::vector< std::string > fields)
Definition: Particles.cpp:161
void file(const std::string filename)
Set the file name.
Definition: Particles.h:123
unsigned int n()
Get the number of particles managed by this instance.
Definition: Particles.h:78
virtual ~Particles()
Destructor.
Definition: Particles.cpp:45
ProblemSetup & simData()
Get the simulation data structure.
Definition: Particles.h:94
virtual void waitForSavers()
Wait for the eventual parallel saving threads.
Definition: Particles.h:87
void n(unsigned int n)
Set the number of particles managed by this instance.
Definition: Particles.h:99
const uivec2 bounds() const
Get the particle index bounds of the "set of particles" managed by this class.
Definition: Particles.h:105
const unsigned int setId() const
Get the "particles set" index associated with this class.
Definition: Particles.h:110
const std::string file()
Get the last printed file path.
Definition: Particles.h:73
void loadDefault()
Register some default arrays:
Definition: Particles.cpp:48
__kernel void fields(__global const unsigned int *iset, __global const uint *isplit, __global const uint *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, __global const uint *icell, __global const uint *ihoc, __constant float *dr_level0, unsigned int N, uivec4 n_cells)
Collect the children, and the seed itself, in order to compute the field values of the buffer partner...
Definition: Coalesce.cl:435
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45
static std::string filename
Definition: AuxiliarMethods.cpp:336
Set of definitions and macros related with the implementation.