-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Labels
Description
With the new Kernel loop in #2123 and the refactoring of ParticleFile into v4 in #2142, it is now time to reconsider the implementation of the two Variables particle.lon and particle.dlon (and similar for lat and z and for time we also need a third Variable particle.time_nextloop).
It would be nice to drop at least one of the Variables because of memory footprint and code simplifications. However, I don't (yet) see a path how to do this.
There are a few core considerations:
- The starting locations (so at time=0) of particles need to be written to output
- The result of kernel samplings needs to be independent of the order of the kernels, so particle positions shouldn't be updated until the end of the Kernel loop.
- The spacetime location at which a field is sampled needs to be in agreement with the spacetime location in the output file.
Furthermore, there is also room for improvement:
- Ideally, the final location (so at
time=runtime) is also written to output (this is not the case in v3) - Ideally, custom variables are treated the same way as
lon,lat,zandtime(this is not the case in v3)
This tracking issue can explore ideas how to implement these ideas
[Update: particle.lon_nextloop has been removed in #2212; although particle.time_nextloop is still needed (see #2213)]
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Status
Done