We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64d896 commit c99e29fCopy full SHA for c99e29f
parcels/kernel.py
@@ -75,7 +75,8 @@ def remove_deleted(self, pset):
75
# TODO v4: need to implement ParticleFile writing of deleted particles
76
# if len(indices) > 0 and self.fieldset.particlefile is not None:
77
# self.fieldset.particlefile.write(pset, None, indices=indices)
78
- pset.remove_indices(indices)
+ if len(indices) > 0:
79
+ pset.remove_indices(indices)
80
81
82
class Kernel(BaseKernel):
0 commit comments