|
Peano
|
A mini-wrapper around a string for particle iterator. More...


Public Member Functions | |
| __init__ (self, template) | |
| template: str the string containing the particle interacion iterator template | |
| insert (self, function) | |
| insert a function into the template string. | |
Data Fields | |
| template | |
A mini-wrapper around a string for particle iterator.
Exists for convenience: adds self.insert() method, which inserts the function which the iterators are supposed to call on a particle or particle pair.
The function insertion works via string replacement. It will look for the string 'FUNCTION' to be replaced.
Definition at line 10 of file AlgorithmStepLibrary.py.
| swift2.particle.AlgorithmStepLibrary.ParticleVertexIteratorTemplate.__init__ | ( | self, | |
| template ) |
template: str the string containing the particle interacion iterator template
Definition at line 21 of file AlgorithmStepLibrary.py.
| swift2.particle.AlgorithmStepLibrary.ParticleVertexIteratorTemplate.insert | ( | self, | |
| function ) |
insert a function into the template string.
Returns the particle iterator template with the function inserted.
Definition at line 29 of file AlgorithmStepLibrary.py.
References swift2.particle.AlgorithmStepLibrary.ParticleVertexIteratorTemplate.template, and swift2.particle.AlgorithmStepLibrary.ParticleCellIteratorTemplate.template.
| swift2.particle.AlgorithmStepLibrary.ParticleVertexIteratorTemplate.template |
Definition at line 26 of file AlgorithmStepLibrary.py.
Referenced by swift2.particle.AlgorithmStepLibrary.ParticleVertexIteratorTemplate.insert(), and swift2.particle.AlgorithmStepLibrary.ParticleCellIteratorTemplate.insert().