Peano
Loading...
Searching...
No Matches
Swift.h
Go to the documentation of this file.
1// This file is part of the ExaParty project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
8
9
10namespace exaparty {
11 namespace kernels {
51 namespace legacy {
52
57 template <typename Particle> void first_init_particle(Particle* particle);
58
66 template <typename Particle>
69 const Particle& particle
70 ) {
71 return localParticleCanBeUpdatedInVertexKernel(marker, particle);
72 }
73
74 template <typename Particle>
77 Particle& particle
78 ) {
80 first_init_particle(&particle);
81 }
82
90 template <typename Particle> void hydro_init_particle(Particle* particle);
91
92 } // namespace legacy
93 } // namespace kernels
94} // namespace exaparty
95
96
97#include "Swift.cpph"
#define assertion(expr)
bool firstInitParticleParticleUpdatePredicate(const peano4::datamanagement::VertexMarker &marker, const Particle &particle)
In principle, we don't need to check for anything here, just overwrite particle data.
Definition Swift.h:67
void first_init_particle(Particle *particle)
Initialise particles for the first time.
void hydro_init_particle(Particle *particle)
Prepares a particle for the density calculation.
void firstInitParticle(const peano4::datamanagement::VertexMarker &marker, Particle &particle)
Definition Swift.h:75
bool localParticleCanBeUpdatedInVertexKernel(const peano4::datamanagement::VertexMarker &marker, const Particle &localParticle)
Can we do work on this particle during a vertex kernel sweep stage?
This file is part of the ExaParty project.
Definition __init__.py:1
Vertex marker to provide information about selected vertex.