Skip to content
Snippets Groups Projects
Commit 4b7d1ed9 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

bugfix --- code now works for multiple interpolators

parent 11fa51cb
No related branches found
No related tags found
No related merge requests found
......@@ -551,6 +551,7 @@ class NavierStokes(bfps.fluid_base.fluid_particle_base):
'if (ps0->iteration % niter_part == 0)\n' +
'{\n')
for s in range(nspecies):
neighbours = self.parameters[interpolator[s] + '_neighbours']
self.particle_start += 'sprintf(fname, "tracers{0}");\n'.format(s0 + s)
self.particle_end += ('ps{0}->write(stat_file);\n' +
'delete ps{0};\n').format(s0 + s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment