Moved serial mode to target mcelecron_serial.

Implemented parallelization with mpi.
This commit is contained in:
Christian
2019-07-18 14:02:19 +02:00
parent fd131afdd3
commit 578d673b65
35 changed files with 916 additions and 469 deletions
+15 -5
View File
@@ -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();
};