Changed CPU synchronization from averaging to

communicating changes
This commit is contained in:
2024-03-05 17:22:05 +01:00
parent 5d33ea11ff
commit 95461433c2
6 changed files with 191 additions and 52 deletions
+3
View File
@@ -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;