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

Calculate the walltime of the simulation #168

Open ndisner opened 3 years ago

ndisner commented 3 years ago

Discussion Topic: Walltime calculation in turbopy framework

This could be useful for when problems need to be optimized. Many people in CS deal with this on the daily basis, but usually the physics problems that we are solving are tremendously difficult and the physicist job is to "just get it to work".

Python has a pretty seamless way of doing this with either the .time() or .timeit() functions but I think a discussion could be had about where it could best fit into the turbopy framework.

Option A: Do this calculation in Simulation class Option B: Do this calculation in the SimulationClock class