165 Create a repository of algorithmic steps which are then
166 ordered into the actual time stepping sequence.
176 name=
"ForceCalculation",
177 dependencies=AlgorithmStep.Dependencies.NEIGHBOURS,
178 effect=AlgorithmStep.Effect.ALTER_LOCAL_STATE,
179 touch_vertex_first_time_kernel=
"",
181 touch_vertex_last_time_kernel=
"",
184 name=
"UpdatePositionAndVelocity",
185 dependencies=AlgorithmStep.Dependencies.SELF,
186 effect=AlgorithmStep.Effect.CHANGE_POSITION_OR_INTERACTION_RADIUS,
187 touch_vertex_first_time_kernel=f
"""::exaparty::kernels::forAllParticles( marker, assignedParticles, numberOfCoalescedAssignedParticles, ::exaparty::timestepping::resetMovedParticleMarker<globaldata::{PARTICLE}> );""",
188 touch_vertex_last_time_kernel=f
"""
189 auto oldParticlePositions = ::toolbox::particles::assignmentchecks::recordParticlePositions(assignedParticles);
190 ::exaparty::kernels::forAllParticles(marker, assignedParticles, numberOfCoalescedAssignedParticles, ::exaparty::timestepping::computeExplicitEulerWithGlobalTimeStepSize<globaldata::{PARTICLE}> );
191 ::toolbox::particles::assignmentchecks::traceParticleMovements(assignedParticles, oldParticlePositions, marker.x(), marker.h(), _spacetreeId);
193 prepare_traversal_kernel=f
"""::exaparty::timestepping::computeAdmissibleTimeStepSizeFromGlobalMeshSizeAndMaximumVelocity<globaldata::{PARTICLE}>({CFL_FACTOR},{TIME_STEP_SIZE});""",
195 #include "exaparty/timestepping/Euler.h"
196 #include "exaparty/timestepping/GlobalTimeStepping.h"
197 #include "exaparty/timestepping/TimeStepping.h"
201 name=
"ReduceVelocityAndDetermineTimeStepSize",
202 dependencies=AlgorithmStep.Dependencies.SELF,
203 effect=AlgorithmStep.Effect.CHANGE_POSITION_OR_INTERACTION_RADIUS,
204 prepare_traversal_kernel=f
"""::exaparty::timestepping::computeAdmissibleTimeStepSizeFromGlobalMeshSizeAndMaximumVelocity<globaldata::{PARTICLE}>({CFL_FACTOR},{TIME_STEP_SIZE});""",
206 #include "exaparty/timestepping/Euler.h"
207 #include "exaparty/timestepping/GlobalTimeStepping.h"
208 #include "exaparty/timestepping/TimeStepping.h"
212 name=
"ReduceGlobalQuantities",
213 dependencies=AlgorithmStep.Dependencies.SELF,
214 effect=AlgorithmStep.Effect.ALTER_GLOBAL_STATE,
215 touch_vertex_first_time_kernel=f
"""::exaparty::kernels::forAllParticles( marker, assignedParticles, numberOfCoalescedAssignedParticles, numberOfCoalescedAssignedParticles, ::exaparty::statistics::reduceVelocityAndSearchRadius<globaldata::{PARTICLE}> );""",
216 prepare_traversal_kernel=f
"""
217 globaldata::{PARTICLE}::getSpecies().clearSearchRadius();
218 globaldata::{PARTICLE}::getSpecies().clearVelocity();
220 unprepare_traversal_kernel=f
"""
221 globaldata::{PARTICLE}::getSpecies().allReduce();
222 globaldata::{PARTICLE}::getSpecies().setTimeStamp( globaldata::{PARTICLE}::getSpecies().getMinTimeStamp() + globaldata::{PARTICLE}::getSpecies().getMinTimeStepSize(), false );
223 ::exaparty::statistics::reportSearchRadiusVTDt<globaldata::{PARTICLE}>( "{PARTICLE}" );
226 #include "exaparty/statistics/Reports.h"
227 #include "exaparty/statistics/Statistics.h"