Moved serial mode to target mcelecron_serial.
Implemented parallelization with mpi.
This commit is contained in:
@@ -16,20 +16,30 @@ class Timer {
|
||||
double T2_activity_s;
|
||||
double offset_time_s;
|
||||
|
||||
int *numTotDecays;
|
||||
long int *local_decays;
|
||||
long int *global_decays;
|
||||
|
||||
public:
|
||||
Timer() {numTotDecays = NULL;}
|
||||
Timer(int *numTotDecays) {
|
||||
this->numTotDecays = numTotDecays;
|
||||
Timer () {};
|
||||
Timer(long int *local_decays, long int *global_decays) {
|
||||
this->local_decays = local_decays;
|
||||
this->global_decays = global_decays;
|
||||
offset_time_s = 0;
|
||||
set_T2_activity_s();
|
||||
}
|
||||
double get_physTime_s();
|
||||
//Timer(const Timer& other);
|
||||
//Timer& operator=(const Timer& other);
|
||||
|
||||
void set_offset_time_s(double new_offset_time_s) {offset_time_s = new_offset_time_s;}
|
||||
|
||||
private:
|
||||
void set_T2_activity_s();
|
||||
|
||||
public:
|
||||
double get_physTime_s();
|
||||
private:
|
||||
long int calc_total_decays();
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user