28 particle_cell_update_kernel,
29 touch_vertex_first_time_compute_particle_update_kernel,
30 touch_vertex_last_time_compute_particle_update_kernel,
31 prepare_traversal_kernel,
32 unprepare_traversal_kernel,
35 alter_particle_position_or_interaction_radius,
36 wait_for_all_tasks_to_finish_after_traversal,
43 @param wait_for_all_tasks_to_finish_after_traversal: Boolean
45 @param alter_particle_position_or_interaction_radius: Boolean
46 Set if the underlying AlgorithmStep's effect might change a
47 particle's position or interaction radius.
48 @see exaparty.api.particle.AlgorithmStep.AlgorithmStep.may_trigger_rerun()
51 if wait_for_all_tasks_to_finish_after_traversal:
52 unprepare_traversal_kernel = (
53 unprepare_traversal_kernel +
"tarch::multicore::waitForAllTasks();"
56 super(UpdateParticle_SingleLevelInteraction_ContiguousParticles, self).
__init__(
58 particle_cell_update_kernel=construct_touch_cell_first_time_call(
59 particle_set,particle_cell_update_kernel,
False
61 touch_vertex_first_time_compute_particle_update_kernel=construct_touch_vertex_first_time_call(
62 particle_set,touch_vertex_first_time_compute_particle_update_kernel,
False
64 touch_vertex_last_time_compute_particle_update_kernel=construct_touch_vertex_last_time_call(
65 particle_set,touch_vertex_last_time_compute_particle_update_kernel,
False,alter_particle_position_or_interaction_radius
67 prepare_traversal_kernel=prepare_traversal_kernel,
68 unprepare_traversal_kernel=unprepare_traversal_kernel,
69 additional_includes=additional_includes
71#include "tarch/multicore/Task.h"
72#include "exaparty/exaparty.h"
73#include "exaparty/TaskNumber.h"
75 active_particle_set=active_particle_set,