36 #ifndef NBODYSYSTEM_HPP 37 #define NBODYSYSTEM_HPP 140 #endif // NBODYSYSTEM_HPP double4 * h_v
Definition: NbodySystem.hpp:105
void free_base_attributes()
Memory deallocation for the identification, positions, and velocities of the particles.
Definition: NbodySystem.cpp:220
This structure contains all the energy variables of the system.
Definition: common.hpp:151
float max_mass
Definition: NbodySystem.hpp:79
float t_cr
Definition: NbodySystem.hpp:77
unsigned int snapshot_number
Definition: NbodySystem.hpp:64
options ops
Definition: NbodySystem.hpp:58
unsigned int * h_move
Definition: NbodySystem.hpp:99
Predictor * h_i
Definition: NbodySystem.hpp:109
double3 * h_a2
Definition: NbodySystem.hpp:106
Predictor * h_p
Definition: NbodySystem.hpp:108
double3 * h_a3
Definition: NbodySystem.hpp:107
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
NbodySystem(OptionsParser op)
Constructor.
Definition: NbodySystem.cpp:39
Class in charge of the general aspects of the N-body integrator.
Definition: NbodySystem.hpp:51
Forces * h_f
Definition: NbodySystem.hpp:112
double e2
Definition: NbodySystem.hpp:70
float integration_time
Definition: NbodySystem.hpp:68
Class in charge to handle all the command-line parameters.
Definition: OptionsParser.hpp:50
double r_cl
Definition: NbodySystem.hpp:83
double * h_ekin
Definition: NbodySystem.hpp:102
Forces * h_fout_gpu[MAXGPUS]
Definition: NbodySystem.hpp:115
float eta
Definition: NbodySystem.hpp:66
void read_input_file()
Method in charge of reading the input file.
Definition: NbodySystem.cpp:76
Forces * d_fout_tmp[MAXGPUS]
Definition: NbodySystem.hpp:131
unsigned int n
Definition: NbodySystem.hpp:63
Forces * d_fout[MAXGPUS]
Definition: NbodySystem.hpp:130
double dt_cl
Definition: NbodySystem.hpp:84
Forces * h_fout_tmp
Definition: NbodySystem.hpp:114
std::string snapshot_filename
Definition: NbodySystem.hpp:94
unsigned int * d_move[MAXGPUS]
Definition: NbodySystem.hpp:120
double * d_ekin[MAXGPUS]
Definition: NbodySystem.hpp:123
double r_core
Definition: NbodySystem.hpp:85
#define MAXGPUS
Definition: NbodySystem.hpp:44
double4 * d_v[MAXGPUS]
Definition: NbodySystem.hpp:126
double * d_epot[MAXGPUS]
Definition: NbodySystem.hpp:124
std::string resume_filename
Definition: NbodySystem.hpp:93
This structure contains different times of the internal integration process.
Definition: common.hpp:253
float total_mass
Definition: NbodySystem.hpp:67
double4 * h_r
Definition: NbodySystem.hpp:104
Forces * h_old
Definition: NbodySystem.hpp:113
Predictor * d_i[MAXGPUS]
Definition: NbodySystem.hpp:128
Forces * d_old[MAXGPUS]
Definition: NbodySystem.hpp:132
Energy en
Definition: NbodySystem.hpp:75
float r_virial
Definition: NbodySystem.hpp:78
double * d_dt[MAXGPUS]
Definition: NbodySystem.hpp:122
double * d_t[MAXGPUS]
Definition: NbodySystem.hpp:121
long long int iterations
Definition: NbodySystem.hpp:62
double snapshot_time
Definition: NbodySystem.hpp:71
Defining the «double3» structure based on the CUDA definition for the CPU version, which not include the CUDA headers.
Definition: common.hpp:74
std::string output_filename
Definition: NbodySystem.hpp:92
double * h_t
Definition: NbodySystem.hpp:100
void alloc_base_attributes(int rank)
Memory allocation for the identification, positions, and velocities of the particles.
Definition: NbodySystem.cpp:196
Predictor * d_p[MAXGPUS]
Definition: NbodySystem.hpp:127
~NbodySystem()
Destructor.
Definition: NbodySystem.cpp:68
double * h_epot
Definition: NbodySystem.hpp:103
Forces * d_f[MAXGPUS]
Definition: NbodySystem.hpp:129
unsigned int * h_id
Definition: NbodySystem.hpp:98
This structure contains the information of the Forces of a particle in some moment of the integration...
Definition: common.hpp:207
std::string input_filename
Definition: NbodySystem.hpp:91
int gpus
Definition: NbodySystem.hpp:61
unsigned int * d_id[MAXGPUS]
Definition: NbodySystem.hpp:119
double4 * d_r[MAXGPUS]
Definition: NbodySystem.hpp:125
bool resume
Definition: NbodySystem.hpp:72
Defining the «double4» structure based on the CUDA definition for the CPU version, which not include the CUDA headers.
Definition: common.hpp:67
void copy_input_data()
Initialization of the data readed from the Input/Snapshot file to the data structures that the code w...
Definition: NbodySystem.cpp:230
Gtime gtime
Definition: NbodySystem.hpp:56
float t_rlx
Definition: NbodySystem.hpp:76
double m_g
Definition: NbodySystem.hpp:88
double * h_dt
Definition: NbodySystem.hpp:101
float r_hm
Definition: NbodySystem.hpp:80
std::vector< file_data > reader
Definition: NbodySystem.hpp:57