Peano
Loading...
Searching...
No Matches
swift2.h
Go to the documentation of this file.
1
// This file is part of the SWIFT2 project. For conditions of distribution and
2
// use, please see the copyright notice at www.peano-framework.org
3
#pragma once
4
5
6
#include "
peano4/datamanagement/CellMarker.h
"
7
#include "
toolbox/particles/MultiscaleTransitions.h
"
8
9
namespace
swift2
{
32
void
markAllParticlesAsUpdatedWithinCell
(
33
auto
& particleContainer,
34
const
peano4::datamanagement::CellMarker
& marker
35
) {
36
for
(
auto
* particle: particleContainer ) {
37
if
( marker.isContained(
38
particle->getX(),
39
toolbox::particles::internal::relativeGrabOwnershipSpatialSortingTolerance
(marker) *
tarch::la::NUMERICAL_ZERO_DIFFERENCE
40
)) {
41
particle->setCellHasUpdatedParticle(
true
);
42
}
43
}
44
}
45
}
CellMarker.h
MultiscaleTransitions.h
swift2
This file is part of the SWIFT 2 project.
Definition
FixedBoundary.h:8
swift2::markAllParticlesAsUpdatedWithinCell
void markAllParticlesAsUpdatedWithinCell(auto &particleContainer, const peano4::datamanagement::CellMarker &marker)
Set the particle markers of all particles within a cell.
Definition
swift2.h:32
tarch::la::NUMERICAL_ZERO_DIFFERENCE
constexpr double NUMERICAL_ZERO_DIFFERENCE
Definition
Scalar.h:17
toolbox::particles::internal::relativeGrabOwnershipSpatialSortingTolerance
double relativeGrabOwnershipSpatialSortingTolerance(const ::peano4::datamanagement::VertexMarker &marker)
peano4::datamanagement::CellMarker
Cell marker.
Definition
CellMarker.h:39
src
swift2
swift2.h
Generated on Sat Apr 11 2026 08:11:15 for Peano by
1.10.0