Skip to content
Snippets Groups Projects
Commit 089cd05c authored by Berenger Bramas's avatar Berenger Bramas
Browse files

Move the generation of particle output at the right position (python)

parent c3885ccb
Branches
Tags
2 merge requests!21Bugfix/nansampling,!3Bugfix/event manager show html
...@@ -620,13 +620,13 @@ class NSVorticityEquation(_fluid_particle_base): ...@@ -620,13 +620,13 @@ class NSVorticityEquation(_fluid_particle_base):
args = [], args = [],
**kwargs): **kwargs):
opt = self.prepare_launch(args = args) opt = self.prepare_launch(args = args)
self.fill_up_fluid_code()
if opt.nparticles > 0: if opt.nparticles > 0:
self.name += '-particles' self.name += '-particles'
self.add_particles( self.add_particles(
integration_steps = 4, integration_steps = 4,
neighbours = opt.neighbours, neighbours = opt.neighbours,
smoothness = opt.smoothness) smoothness = opt.smoothness)
self.fill_up_fluid_code()
self.finalize_code() self.finalize_code()
self.launch_jobs(opt = opt) self.launch_jobs(opt = opt)
return None return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment