Peano
Loading...
Searching...
No Matches
internal.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5
8#include "tarch/la/Vector.h"
9
10
11namespace toolbox {
12 namespace particles {
59
63 constexpr double GrabOwnershipSpatialSortingTolerance = 1.001;
64
65 namespace internal {
66 double relativeReleaseOwnershipSpatialSortingTolerance(const ::peano4::datamanagement::VertexMarker& marker);
67 double relativeReleaseOwnershipSpatialSortingTolerance(const ::peano4::datamanagement::CellMarker& marker);
69 double relativeGrabOwnershipSpatialSortingTolerance(const ::peano4::datamanagement::VertexMarker& marker);
70 double relativeGrabOwnershipSpatialSortingTolerance(const ::peano4::datamanagement::CellMarker& marker);
72
73 bool fitsIntoLevel(double searchRadius, const ::peano4::datamanagement::CellMarker& marker);
74 bool fitsIntoLevel(double searchRadius, const ::peano4::datamanagement::VertexMarker& marker);
75
89 } // namespace internal
90 } // namespace particles
91} // namespace toolbox
92
93
94
std::bitset< Dimensions > getParticleAssociationWithinCell(const tarch::la::Vector< Dimensions, double > &x, const tarch::la::Vector< Dimensions, double > &cellCentre)
Find out which vertex should hold a particle.
double relativeGrabOwnershipSpatialSortingTolerance(const ::peano4::datamanagement::VertexMarker &marker)
double relativeReleaseOwnershipSpatialSortingTolerance(const ::peano4::datamanagement::VertexMarker &marker)
bool fitsIntoLevel(double searchRadius, const ::peano4::datamanagement::CellMarker &marker)
constexpr double ReleaseOwnershipSpatialSortingTolerance
Sorting tolerance.
Definition internal.h:58
constexpr double GrabOwnershipSpatialSortingTolerance
Definition internal.h:63