Corrections to drawing the velocity of a tracked
species (dynamic density field of previous timestep); some optimization changes
This commit is contained in:
@@ -315,6 +315,8 @@ void SimulationOutput::writeSpectrum(DynamicDensityField* density_field,
|
||||
|
||||
void SimulationOutput::writeDensity(DynamicDensityField* density_field,
|
||||
std::string path) {
|
||||
// precaution, shouldn't be necessary due to calculation after cpu sync
|
||||
density_field->recalculateDensityArray();
|
||||
writer.write(density_field->densityArray(), path + "/Density");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user