Changed Allreduce to Reduce for CurrentCollector

and DeletionLogger; removed sync_ field copies
This commit is contained in:
2025-10-21 14:26:45 +02:00
parent f5ff3d2f7c
commit f57895bcef
6 changed files with 101 additions and 61 deletions
+7
View File
@@ -45,6 +45,13 @@ class CpuSynchronizer {
// array has to be the delta of the timestep
void sumToAll(blitz::Array<double, 5>& array);
// collect data to rank 0 functions
void sumToRoot(blitz::Array<double, 3>& array);
void sumToRoot(long int& value);
void sumToRoot(double& value);
const int root = 0;
};
#endif /* CPU_SYNCHRONIZER_H */