Corrections to drawing the velocity of a tracked
species (dynamic density field of previous timestep); some optimization changes
This commit is contained in:
@@ -59,7 +59,10 @@ TrackedSpecie::TrackedSpecie(
|
||||
density_for_drawing, mass_kg)) {}
|
||||
|
||||
DensityField* TrackedSpecie::densityField() {
|
||||
return density_field_.get();
|
||||
// return the density field storing the previous timestep, since
|
||||
// that density is the only one that makes sense for the calculation
|
||||
// of e.g. MFP for Tracked-Tracked interactions
|
||||
return density_for_drawing_.get();
|
||||
}
|
||||
|
||||
VelocityDistribution* TrackedSpecie::velocityDistribution() {
|
||||
|
||||
Reference in New Issue
Block a user