Peano
Loading...
Searching...
No Matches
TimeStepping.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
8
10
11
12namespace swift2 {
13 namespace timestepping {
21 template <typename Particle>
22 void reset_moved_particle_marker(Particle& particle);
23
24 template <typename Particle>
27 const Particle& particle
28 ) {
29 return ::swift2::kernels::localParticleCanBeUpdatedInVertexKernel(marker,particle);
30 }
31
32 template <typename Particle>
35 Particle& particle
36 ) {
37 assertion2(::swift2::kernels::localParticleCanBeUpdatedInVertexKernel(marker,particle), marker.toString(), particle.toString());
38 }
39 }
40}
41
42
43#include "TimeStepping.cpph"
44
45
#define assertion2(expr, param0, param1)
bool localParticleCanBeUpdatedInVertexKernel(const peano4::datamanagement::VertexMarker &marker, const Particle &localParticle)
Can we do work on this particle during a vertex kernel sweep stage?
void resetMovedParticleMarker(const peano4::datamanagement::VertexMarker &marker, Particle &particle)
void reset_moved_particle_marker(Particle &particle)
Reset the marker of a particle from whatever it has been before to NotMoved.
bool resetMovedParticleMarkerUpdateParticlePredicate(const peano4::datamanagement::VertexMarker &marker, const Particle &particle)
This file is part of the SWIFT 2 project.
Vertex marker to provide information about selected vertex.