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