MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / finalize

Method finalize

Tools/Postprocessing/python/parseparticles.py:208–222  ·  view source on GitHub ↗

sort the particle histories in time order (since they may have been spread across multiple processors / files. finalize() should only be called after all particle data has been read in

(self)

Source from the content-addressed store, hash-verified

206
207
208 def finalize(self):
209 """
210 sort the particle histories in time order (since they may
211 have been spread across multiple processors / files.
212
213 finalize() should only be called after all particle data
214 has been read in
215 """
216
217 # sort the history by time -- the particleInstance objects use
218 # time as their value for comparison, so sort() should handle
219 # this nicely for us.
220 self.history.sort()
221
222 self.finalized = 1
223
224
225

Callers 2

testRedistributeFunction · 0.45
parseParticleFileFunction · 0.45

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected