![]() |
Peano
|
Data Structures | |
class | ParticleIteratorTemplate |
A mini-wrapper around a string for particle iterator. More... | |
Functions | |
_get_particle_iterator_templates (particle_name) | |
Construct particle interaction iterator call templates given the desired particle interaction kernel realisation. | |
get_algorithm_step_dict (particle) | |
Sets up a dict of the algorithm steps for this scheme so they can be accessed at various points and by various models. | |
|
protected |
Construct particle interaction iterator call templates given the desired particle interaction kernel realisation.
These signature templates are strings containing c++ code snippets of the correct iterator call signature.
In total, there are four types of iterators. The essential two are:
From hereon, we can define some "derived" iterators:
Both special iterators are constructed to default values unless you explicitly set them beforehand.
The iterators require a function to be passed as an argument to act on the particles. In the template snippets being generated here, the functions shall be replaced by a placeholder string 'FUNCTION'.
Finally, the code snippets being returned are stored as a ParticleIteratorTemplate object.
particle_name | str the particle class name. |
4 ParticleIteratorTemplate objects containing particle iterator code snippets.
Definition at line 34 of file AlgorithmStepLibrary.py.
Referenced by swift2.particle.AlgorithmStepLibrary.get_algorithm_step_dict().
swift2.particle.AlgorithmStepLibrary.get_algorithm_step_dict | ( | particle | ) |
Sets up a dict of the algorithm steps for this scheme so they can be accessed at various points and by various models.
Definition at line 128 of file AlgorithmStepLibrary.py.
References swift2.particle.AlgorithmStepLibrary._get_particle_iterator_templates().