Commit 4b7d1ed9 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

bugfix --- code now works for multiple interpolators

parent 11fa51cb
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment