Peano
Loading...
Searching...
No Matches
Statistics.cpph
Go to the documentation of this file.
1
#include "
peano4/parallel/SpacetreeSet.h
"
2
3
template
<
typename
Particle>
4
void
swift2::statistics::reduceVelocityAndSearchRadius
(
5
const
peano4::datamanagement::VertexMarker
& marker,
6
Particle& particle
7
) {
8
Particle::getSpecies().setVelocity(
9
tarch::la::norm2
(particle.getV()),
10
tarch::la::norm2
(particle.getV()),
11
particle.getSearchRadius(),
12
particle.getSearchRadius()
13
);
14
}
SpacetreeSet.h
swift2::statistics::reduceVelocityAndSearchRadius
void reduceVelocityAndSearchRadius(const peano4::datamanagement::VertexMarker &marker, Particle &localParticle)
Definition
Statistics.cpph:4
tarch::la::norm2
Scalar norm2(const Vector< Size, Scalar > &vector)
Computes the 2-norm of the vector, i.e.
Definition
VectorOperations.cpph:100
peano4::datamanagement::VertexMarker
Vertex marker to provide information about selected vertex.
Definition
VertexMarker.h:90
src
swift2
statistics
Statistics.cpph
Generated on Fri Apr 11 2025 10:18:04 for Peano by
1.10.0