NRL-Plasma-Physics-Division / turbopy

A lightweight computational physics framework, based on the organization of turboWAVE. Implements a "Simulation, PhysicsModule, ComputeTool, Diagnostic" class hierarchy.
https://turbopy.readthedocs.io/
Creative Commons Zero v1.0 Universal
10 stars 18 forks source link

Create helper class for diagnostics #153

Closed arichar6 closed 4 years ago

arichar6 commented 4 years ago

Some of the diagnostics would be good to have run at a different interval than every time step. This logic could be simplified by creating a helper class to deal with the interval checking logic, and then using composition to extend the diagnostic class.