57 #define MPI_NUM_SLAVES 600 63 #include <cuda_runtime.h> 93 const double E = 1e-4;
96 const double E2 = 1e-8;
132 return value < a.
value;
278 integration_ini = 0.0;
279 integration_end = 0.0;
280 prediction_ini = 0.0;
281 prediction_end = 0.0;
284 correction_ini = 0.0;
285 correction_end = 0.0;
290 reduce_forces_ini = 0.0;
291 reduce_forces_end = 0.0;
317 const int BSIZE = 32;
318 const int NJBLOCK = 16;
double grav_end
Member 'grav_end' contains the final time of the gravitational interaction.
Definition: common.hpp:267
This structure contains all the energy variables of the system.
Definition: common.hpp:151
const double D_TIME_MAX
Upper boundary for the particles timesteps, .
Definition: common.hpp:114
double w
Definition: common.hpp:69
double z
Definition: common.hpp:69
const double E
Softening parameter.
Definition: common.hpp:93
General structure to read the INPUT file.
Definition: common.hpp:307
double end
Member 'end' contains the newest total energy of the system in a certain time.
Definition: common.hpp:154
bool print_all
Member 'print_all' contains the boolean value of printing the information of all the particles of the...
Definition: common.hpp:178
double value
Member 'value' distance of the particle respect to a reference.
Definition: common.hpp:129
double integration_ini
Member 'integration_ini' contains the starting time of the integration.
Definition: common.hpp:254
struct double4 double4
Defining the «double4» structure based on the CUDA definition for the CPU version, which not include the CUDA headers.
Structure to handle the distance of the particles, to be able to identify them while sorted...
Definition: common.hpp:126
double tmp
Member 'tmp' contains the previous total total energy of the system.
Definition: common.hpp:155
This structure contains the predicted information of a particle in some moment of the integration...
Definition: common.hpp:192
Options to handling printing options, like printing the snapshot on the screen instead of a file; pri...
Definition: common.hpp:175
double z
Definition: common.hpp:76
const int J
Amount of neighbours to calculate the center of density of the system (Casertano & Hut 1985) ...
Definition: common.hpp:85
const double KERNEL_GFLOP
Definition: common.hpp:315
double reduce_forces_ini
Member 'reduce_ini' contains the starting time of the forces reduction on CPU.
Definition: common.hpp:272
double prediction_ini
Member 'prediction_ini' contains the starting time of the prediction.
Definition: common.hpp:257
int index
Member 'index' identification of the particle.
Definition: common.hpp:128
double grav_ini
Member 'grav_ini' contains the starting time of the gravitational interaction.
Definition: common.hpp:266
double ini
Member 'ini' contains the initial total energy of the system.
Definition: common.hpp:153
bool print_screen
Member 'print_screen' contains the boolean value of printing the snapshot on the screen (true) or a f...
Definition: common.hpp:177
Gtime()
Definition: common.hpp:276
const double D_MTIME_MIN
Lower boundary for the binary timesteps, .
Definition: common.hpp:111
double reduce_end
Member 'reduce_end' contains the final time of the forces reduction.
Definition: common.hpp:270
bool print_lagrange
Member 'print_lagrange' contains the boolean value for calculating and printing the lagrange radii of...
Definition: common.hpp:179
struct Predictor Predictor
This structure contains different times of the internal integration process.
Definition: common.hpp:253
double y
Definition: common.hpp:69
double reduce_forces_end
Member 'reduce_end' contains the final time of the forces reduction on CPU.
Definition: common.hpp:273
int id
Member 'id' particle identification.
Definition: common.hpp:309
double prediction_end
Member 'prediction_end' contains the final time of the prediction.
Definition: common.hpp:258
const float ETA_S
Initial ETA parameter to calculate the first timestep of all the particles of the system...
Definition: common.hpp:100
const int G
Gravitational constant.
Definition: common.hpp:81
Defining the «double3» structure based on the CUDA definition for the CPU version, which not include the CUDA headers.
Definition: common.hpp:74
struct file_data file_data
struct double3 double3
Defining the «double3» structure based on the CUDA definition for the CPU version, which not include the CUDA headers.
const double E2
Softening parameter squared.
Definition: common.hpp:96
This structure contains the information of the Forces of a particle in some moment of the integration...
Definition: common.hpp:207
float m
Member 'm' particle mass.
Definition: common.hpp:310
float m
Member 'm' contains the mass of the particle.
Definition: common.hpp:195
const double D_TIME_MIN
Lower boundary for the particles timesteps, .
Definition: common.hpp:107
double correction_end
Member 'correction_end' contains the final time of the correction.
Definition: common.hpp:264
double update_end
Member 'update_end' contains the final time of the forces update.
Definition: common.hpp:261
double correction_ini
Member 'correction_ini' contains the starting time of the correction.
Definition: common.hpp:263
const float LAGRANGE_RADII[]
Definition: common.hpp:90
Defining the «double4» structure based on the CUDA definition for the CPU version, which not include the CUDA headers.
Definition: common.hpp:67
float gflops
Member 'gflops' contains the amount of Giga FLOPs of the force update method.
Definition: common.hpp:275
bool operator<(const Distance &a) const
Definition: common.hpp:130
double reduce_ini
Member 'reduce_ini' contains the starting time of the forces reduction.
Definition: common.hpp:269
double update_ini
Member 'update_ini' contains the starting time of the forces update.
Definition: common.hpp:260
double kinetic
Member 'kinetic' contains the newest kinetic energy of the system in a certain time.
Definition: common.hpp:156
const float ETA_N
Iteration ETA parameter to calculate new timestep of all the active particles of the system...
Definition: common.hpp:104
double integration_end
Member 'integration_end' contains the final time of the integration.
Definition: common.hpp:255
double x
Definition: common.hpp:69
const float CORE_MASS
Common mass percentage in the core of a globular cluster.
Definition: common.hpp:88
double potential
Member 'potential' contains the newest kinetic energy of the system in a certain time.
Definition: common.hpp:157