We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a171345 commit 0ab5c5fCopy full SHA for 0ab5c5f
1 file changed
src/Iteration.cpp
@@ -363,7 +363,12 @@ void Iteration::flush(internal::FlushParams const &flushParams)
363
}
364
meshes.flush(s.meshesPath(), flushParams);
365
for (auto &m : meshes)
366
- m.second.flush(m.first, flushParams);
+ {
367
+ if (m.second.dirtyRecursive())
368
369
+ m.second.flush(m.first, flushParams);
370
+ }
371
372
373
else
374
{
@@ -379,7 +384,12 @@ void Iteration::flush(internal::FlushParams const &flushParams)
379
384
380
385
particles.flush(s.particlesPath(), flushParams);
381
386
for (auto &species : particles)
382
- species.second.flush(species.first, flushParams);
387
388
+ if (species.second.dirtyRecursive())
389
390
+ species.second.flush(species.first, flushParams);
391
392
383
393
394
395
0 commit comments