17 As the final grid traversal, clean up after yourself. At the moment, this
18 entails deleting particles properly.
23 self.
d[
"PARTICLE"] = particle_set.particle_model.name
24 self.
d[
"PARTICLES_CONTAINER"] = particle_set.name
36 __Template_TouchVertexLastTime = jinja2.Template(
38 fineGridVertex{{PARTICLES_CONTAINER}}.deleteParticles();
44 if operation_name == ActionSet.OPERATION_TOUCH_VERTEX_LAST_TIME:
49 return __name__.replace(
".py",
"").replace(
".",
"_")
52 result = jinja2.Template(
54#include "vertexdata/{{PARTICLES_CONTAINER}}.h"
55#include "globaldata/{{PARTICLE}}.h"
58 return result.render(**self.
d)
Action set (reactions to events)
get_body_of_operation(self, operation_name)
Return actual C++ code snippets to be inserted into C++ code.
__init__(self, particle_set)
Cleanup action set.
__Template_TouchVertexLastTime
user_should_modify_template(self)
Is the user allowed to modify the output.
get_action_set_name(self)
Return unique action set name.
get_includes(self)
Return include statements that you need.