Moved serial mode to target mcelecron_serial.
Implemented parallelization with mpi.
This commit is contained in:
@@ -59,6 +59,10 @@ private:
|
||||
Lin_Scale get_r_scale();
|
||||
Lin_Scale calc_phi_scale();
|
||||
|
||||
public:
|
||||
int get_array_length();
|
||||
double *get_cumulated_time_s_array();
|
||||
double *get_offset_array();
|
||||
};
|
||||
|
||||
|
||||
@@ -212,12 +216,12 @@ inline void Thermal_Population::set_bins(bin_count4 bin_counts, bin_content_vec
|
||||
}
|
||||
int z_bin, r_bin, phi_bin;
|
||||
double cumulated_time_s, offset;
|
||||
for(bin_content_vec::iterator Itr = bin_contents.begin(); Itr != bin_contents.end(); Itr++) {
|
||||
z_bin = (*Itr).z_bin;
|
||||
r_bin = (*Itr).r_bin;
|
||||
phi_bin = (*Itr).phi_bin;
|
||||
cumulated_time_s = (*Itr).cumulated_time_s;
|
||||
offset = (*Itr).offset;
|
||||
for(bin_content_vec::iterator itr = bin_contents.begin(); itr != bin_contents.end(); itr++) {
|
||||
z_bin = (*itr).z_bin;
|
||||
r_bin = (*itr).r_bin;
|
||||
phi_bin = (*itr).phi_bin;
|
||||
cumulated_time_s = (*itr).cumulated_time_s;
|
||||
offset = (*itr).offset;
|
||||
cumulated_times_s.set_value_by_bin(cumulated_time_s, z_bin, r_bin, phi_bin);
|
||||
number_annhilated.set_value_by_bin(offset, z_bin, r_bin, phi_bin);
|
||||
}
|
||||
@@ -253,5 +257,15 @@ inline Lin_Scale Thermal_Population::calc_phi_scale() {
|
||||
}
|
||||
}
|
||||
|
||||
inline int Thermal_Population::get_array_length() {
|
||||
return cumulated_times_s.get_total_data_size();
|
||||
}
|
||||
|
||||
inline double *Thermal_Population::get_cumulated_time_s_array() {
|
||||
return cumulated_times_s.get_array();
|
||||
}
|
||||
|
||||
inline double *Thermal_Population::get_offset_array() {
|
||||
return number_annhilated.get_array();
|
||||
}
|
||||
#endif /* Thermal_Population_h */
|
||||
|
||||
Reference in New Issue
Block a user