24#ifndef PROBLEMSETUP_H_INCLUDED
25#define PROBLEMSETUP_H_INCLUDED
30#define __NO_OUTPUT_MODE__ 0
35#define __FPS_MODE__ 1 << 0
40#define __IPF_MODE__ 1 << 1
45#define __TIME_MODE__ 1 << 0
50#define __ITER_MODE__ 1 << 1
55#define __FRAME_MODE__ 1 << 2
72namespace InputOutput {
174 device(
const unsigned int platform_index,
175 const unsigned int device_index,
176 const cl_device_type t = CL_DEVICE_TYPE_ALL)
228 std::vector<ProblemSetup::sphSettings::device>
devices;
349 void define(
const std::string name,
350 const std::string value,
351 const bool evaluate);
386 void set(
const std::string name,
const std::string value);
392 const std::string
get(
const std::string name);
398 const std::string
get(
unsigned int index);
404 const std::string
getName(
unsigned int index);
409 unsigned int n()
const {
return _data.size(); }
416 bool has(
const std::string name);
419 std::map<std::string, std::string> _data;
613 void n(
unsigned int N) { _n = N; }
618 unsigned int n()
const {
return _n; }
625 void addScalar(std::string name, std::string value);
650 void input(std::string path, std::string format, std::string
fields);
656 const std::string
inputPath()
const {
return _in_path; }
668 std::vector<std::string>
inputFields()
const {
return _in_fields; }
688 void output(std::string path, std::string format, std::string
fields);
713 std::vector<std::string> _snames;
715 std::vector<std::string> _svalues;
718 std::string _in_path;
721 std::string _in_format;
724 std::vector<std::string> _in_fields;
727 std::string _out_path;
730 std::string _out_format;
733 std::vector<std::string> _out_fields;
737 std::vector<sphParticlesSet*>
sets;
Particles set data.
Definition: ProblemSetup.h:602
void n(unsigned int N)
Set the number of particles.
Definition: ProblemSetup.h:613
void addScalar(std::string name, std::string value)
Add a scalar property for this particles set.
Definition: ProblemSetup.cpp:212
~sphParticlesSet()
Destructor.
Definition: ProblemSetup.cpp:209
const std::string outputPath() const
Get the output file path.
Definition: ProblemSetup.h:694
const std::string inputPath() const
Get the file path from the particles would be read.
Definition: ProblemSetup.h:656
void output(std::string path, std::string format, std::string fields)
Set the file path where the particles should be written.
Definition: ProblemSetup.cpp:234
std::vector< std::string > scalarValues() const
Get the scalar values list.
Definition: ProblemSetup.h:635
const std::string outputFormat() const
Get the output file format.
Definition: ProblemSetup.h:700
std::vector< std::string > scalarNames() const
Get the scalar names list.
Definition: ProblemSetup.h:630
const std::string inputFormat() const
Get the input file format.
Definition: ProblemSetup.h:662
std::vector< std::string > outputFields() const
Get the output file fields.
Definition: ProblemSetup.h:706
unsigned int n() const
Get the number of particles.
Definition: ProblemSetup.h:618
void input(std::string path, std::string format, std::string fields)
Set the file path from which the particles should be read.
Definition: ProblemSetup.cpp:219
sphParticlesSet()
Constructor.
Definition: ProblemSetup.cpp:204
std::vector< std::string > inputFields() const
Get the input file fields.
Definition: ProblemSetup.h:668
__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
float length(vec v)
Compute the vector length.
Definition: AuxiliarMethods.cpp:521
Set of definitions and macros related with the implementation.