Removed cpu syncs inbetween a timestep; Changed Density field accordingly
This commit is contained in:
@@ -21,11 +21,9 @@ class CpuSynchronizer {
|
||||
|
||||
void synchronize(
|
||||
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>&
|
||||
tracked_species, bool reset);
|
||||
tracked_species);
|
||||
|
||||
void synchronize(DynamicDensityField* field,
|
||||
DynamicDensityField* density_for_drawing,
|
||||
bool reset);
|
||||
void synchronize(DynamicDensityField* field);
|
||||
void synchronize(CurrentCollector* collector);
|
||||
void synchronize(DeletionLogger* logger);
|
||||
void synchronize(Timer* timer, Timer* last_sync_timer);
|
||||
@@ -36,8 +34,6 @@ class CpuSynchronizer {
|
||||
*/
|
||||
void sumToAll(blitz::Array<double, 4>& array,
|
||||
blitz::Array<double, 4>& last_sync_array);
|
||||
void sumToAll(blitz::Array<double, 5>& array,
|
||||
blitz::Array<double, 5>& last_sync_array);
|
||||
void sumToAll(blitz::Array<double, 3>& array,
|
||||
blitz::Array<double, 3>& last_sync_array);
|
||||
void sumToAll(blitz::Array<long int, 4>& array,
|
||||
@@ -46,6 +42,9 @@ class CpuSynchronizer {
|
||||
blitz::Array<long int, 5>& last_sync_array);
|
||||
void sumToAll(double& value, double& last_sync_value);
|
||||
void sumToAll(long int& value, long int& last_sync_value);
|
||||
|
||||
// array has to be the delta of the timestep
|
||||
void sumToAll(blitz::Array<double, 5>& array);
|
||||
};
|
||||
|
||||
#endif /* CPU_SYNCHRONIZER_H */
|
||||
|
||||
@@ -64,8 +64,7 @@ class TrackedSpecie : public Specie {
|
||||
std::shared_ptr<Reflector> reflector,
|
||||
std::shared_ptr<DynamicDensityField> density_field,
|
||||
std::shared_ptr<VelocityDistribution> velocity_distribution,
|
||||
std::shared_ptr<DriftVelocity> drift_velocity,
|
||||
std::shared_ptr<DynamicDensityField> density_for_drawing);
|
||||
std::shared_ptr<DriftVelocity> drift_velocity);
|
||||
|
||||
DensityField* densityField();
|
||||
VelocityDistribution* velocityDistribution();
|
||||
@@ -79,8 +78,6 @@ class TrackedSpecie : public Specie {
|
||||
DeletionLogger* deletionLogger();
|
||||
void deletionLogger(std::shared_ptr<DeletionLogger> new_logger);
|
||||
|
||||
DynamicDensityField* densityForDrawing();
|
||||
|
||||
CurrentCollector* currentCollector();
|
||||
void currentCollector(std::shared_ptr<CurrentCollector> new_collector);
|
||||
|
||||
@@ -102,7 +99,6 @@ class TrackedSpecie : public Specie {
|
||||
std::shared_ptr<CurrentCollector> current_collector_;
|
||||
std::vector<std::shared_ptr<interaction::Interaction>> interactions_;
|
||||
|
||||
std::shared_ptr<DynamicDensityField> density_for_drawing_;
|
||||
// necessary for interactions between TrackedSpecies
|
||||
std::shared_ptr<VelocityDistributionFromDensityField>
|
||||
velocity_distribution_from_density_;
|
||||
|
||||
Reference in New Issue
Block a user