Fixed to state that drawing from density works.

Some debugging elements not removed.
This commit is contained in:
2024-08-12 14:20:45 +02:00
parent b57f6ff201
commit 9dda12b60a
13 changed files with 100 additions and 31 deletions
+9 -1
View File
@@ -259,6 +259,13 @@ void SpeciesBuilder::fillTrackedDensity(Parameter& parameter) {
{"DensityField", "DynamicDensityField"}),
timer_);
// not the optimal solution! (has to be optimized)
b.second.density_drawing_field = buildDynamicDensityField(
parameter,
json_path_append(b.second.path_in_json,
{"DensityField", "DynamicDensityField"}),
timer_);
b.second.last_sync_density_field = buildDynamicDensityField(
parameter,
json_path_append(b.second.path_in_json,
@@ -283,7 +290,8 @@ void SpeciesBuilder::buildSpecies() {
b.second.type, b.second.name, b.second.mass_kg, b.second.charge_C,
b.second.mover, b.second.terminator, b.second.reflector,
b.second.density_field, b.second.velocity_distribution,
b.second.drift_velocity, b.second.last_sync_density_field));
b.second.drift_velocity, b.second.last_sync_density_field,
b.second.density_drawing_field));
}
}