Changed CPU synchronization from averaging to
communicating changes
This commit is contained in:
@@ -23,6 +23,7 @@ struct TrackedSpeciesBuilderInfo {
|
||||
std::shared_ptr<DynamicDensityField> density_field;
|
||||
std::shared_ptr<VelocityDistribution> velocity_distribution;
|
||||
std::shared_ptr<DriftVelocity> drift_velocity;
|
||||
std::shared_ptr<DynamicDensityField> last_sync_density_field;
|
||||
|
||||
double mass_kg;
|
||||
double charge_C;
|
||||
@@ -75,11 +76,13 @@ class SpeciesBuilder {
|
||||
std::map<std::string, std::shared_ptr<species::BackgroundSpecie>>
|
||||
backgroundSpecies();
|
||||
std::shared_ptr<Timer> timer();
|
||||
std::shared_ptr<Timer> lastSyncTimer();
|
||||
|
||||
private:
|
||||
std::map<std::string, BackgroundSpeciesBuilderInfo> background_species_info;
|
||||
std::map<std::string, TrackedSpeciesBuilderInfo> tracked_species_info;
|
||||
std::shared_ptr<Timer> timer_;
|
||||
std::shared_ptr<Timer> last_sync_timer_;
|
||||
|
||||
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>
|
||||
tracked_species;
|
||||
|
||||
Reference in New Issue
Block a user