![]() |
Peano
|
Public Member Functions | |
__init__ (self, file_name, solver_name="", verbose=False) | |
:: Attributes | |
__str__ (self, *args, **kwargs) | |
parse (self, verbose) | |
get_time_per_time_step (self) | |
Returns a whole array of times per time step, so you can plot the evoluation of the cost per step over time. | |
get_average_time_per_time_step (self) | |
Returns a whole array of times per time step, so you can plot the evoluation of the cost per step over time. | |
get_updates (self) | |
get_time_step_real_time_stamps (self) | |
Returns a series of real time stamps (in seconds) snapshotted per time step. | |
get_time_step_simulated_time_stamps (self) | |
Returns a sequence of time stamps that are the simulated time stamps (where has the simulation been at a certain point) per step. | |
get_time_step_time_step_size (self) | |
uses_local_timestepping (self) | |
timesteps (self) | |
Should maybe eliminate the time steps that are not really steps. | |
time_per_time_step (self) | |
Time of last time step normalised (multiplied) with h^d. | |
remove_first_n_entries (self, count) | |
Remove the first count entries from the dataset. | |
Data Fields | |
total_construction_time | |
total_time_stepping_time | |
total_plotting_time | |
total_construction_steps | |
total_time_stepping_steps | |
total_plotting_steps | |
plotting_time_stamp | |
valid | |
Private Member Functions | |
__convert_machine_readable_timestamp_to_seconds (self, data) | |
Hand in a string in nanoseconds and return double as s. | |
__convert_human_readable_timestamp_to_seconds (self, data) | |
Hand in a string in the format hh:mm:ss. | |
__extract_time_stamp_from_run_call (self, line) | |
Definition at line 11 of file PerformanceData.py.
exahype2.postprocessing.PerformanceData.PerformanceData.__init__ | ( | self, | |
file_name, | |||
solver_name = "", | |||
verbose = False ) |
:: Attributes
self._number_of_time_steps: Int Includes the empty time steps (warm-up phase) if you have adaptive time stepping.
:: Arguments
file_name: String This is a mandatory field, as it tells us which file to parse.
solver_name: String In theory, you could live without this one if you have only one solver. However, ExaHyPE2 supports multiple solvers within one grid and therefore needs a dedicated solver name to know where to look in the file. Leave it empty if there's only one solver.
Definition at line 12 of file PerformanceData.py.
|
private |
Hand in a string in the format hh:mm:ss.
Definition at line 84 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__extract_time_stamp_from_run_call().
|
private |
Hand in a string in nanoseconds and return double as s.
Definition at line 74 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__extract_time_stamp_from_run_call().
|
private |
Definition at line 108 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData.__convert_human_readable_timestamp_to_seconds(), exahype2.postprocessing.PerformanceData.PerformanceData.__convert_machine_readable_timestamp_to_seconds(), and exahype2.postprocessing.PerformanceData.PerformanceData._parse_machine_time_format.
exahype2.postprocessing.PerformanceData.PerformanceData.__str__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Definition at line 98 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._number_of_time_steps, exahype2.postprocessing.PerformanceData.PerformanceData._ranks, exahype2.postprocessing.PerformanceData.PerformanceData._threads, exahype2.postprocessing.PerformanceData.PerformanceData.total_construction_steps, exahype2.postprocessing.PerformanceData.PerformanceData.total_construction_time, exahype2.postprocessing.PerformanceData.PerformanceData.total_plotting_steps, exahype2.postprocessing.PerformanceData.PerformanceData.total_plotting_time, exahype2.postprocessing.PerformanceData.PerformanceData.total_time_stepping_steps, exahype2.postprocessing.PerformanceData.PerformanceData.total_time_stepping_time, exahype2.postprocessing.PerformanceData.PerformanceData.valid, and peano4.toolbox.particles.postprocessing.Dataset.Dataset.valid.
Referenced by peano4.toolbox.particles.postprocessing.ParticleVTUReader.VTUParticleSet.__repr__().
exahype2.postprocessing.PerformanceData.PerformanceData.get_average_time_per_time_step | ( | self | ) |
Returns a whole array of times per time step, so you can plot the evoluation of the cost per step over time.
Definition at line 266 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData.get_time_per_time_step().
exahype2.postprocessing.PerformanceData.PerformanceData.get_time_per_time_step | ( | self | ) |
Returns a whole array of times per time step, so you can plot the evoluation of the cost per step over time.
Definition at line 253 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._time_step_time_stamp.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_average_time_per_time_step().
exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_real_time_stamps | ( | self | ) |
Returns a series of real time stamps (in seconds) snapshotted per time step.
This is not a mere copy, as the last entry in the local set is the end of the simulation. So we remove this one. At the same time, the very first entry is the start of the simulation or first time step where nothing happens yet (if we have to analyse the eigenvalue first).
Definition at line 287 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._time_step_time_stamp.
exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_simulated_time_stamps | ( | self | ) |
Returns a sequence of time stamps that are the simulated time stamps (where has the simulation been at a certain point) per step.
This is not a mere copy, as the last entry in the local set is the end of the simulation
Definition at line 306 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._simulated_time_stamp_max, exahype2.postprocessing.PerformanceData.PerformanceData._simulated_time_stamp_min, and exahype2.postprocessing.PerformanceData.PerformanceData.uses_local_timestepping().
exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_time_step_size | ( | self | ) |
Definition at line 326 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_max, exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_min, and exahype2.postprocessing.PerformanceData.PerformanceData.uses_local_timestepping().
exahype2.postprocessing.PerformanceData.PerformanceData.get_updates | ( | self | ) |
Definition at line 283 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._updates.
exahype2.postprocessing.PerformanceData.PerformanceData.parse | ( | self, | |
verbose ) |
Definition at line 123 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._file_name, peano4.visualisation.output.Visualiser.Visualiser._file_name, peano4.visualisation.output.VTUUnstructuredGrid.VTUUnstructuredGrid._file_name, exahype2.postprocessing.PerformanceData.PerformanceData._threads, int, exahype2.postprocessing.PerformanceData.PerformanceData.valid, and peano4.toolbox.particles.postprocessing.Dataset.Dataset.valid.
exahype2.postprocessing.PerformanceData.PerformanceData.remove_first_n_entries | ( | self, | |
count ) |
Remove the first count entries from the dataset.
Usually, count is one and anticipates that the solver requires one `‘warm up’' sweep to determine h and the eigenvalue, e.g.
Definition at line 366 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._simulated_time_stamp_max, exahype2.postprocessing.PerformanceData.PerformanceData._simulated_time_stamp_min, exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_max, exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_min, and exahype2.postprocessing.PerformanceData.PerformanceData._time_step_time_stamp.
exahype2.postprocessing.PerformanceData.PerformanceData.time_per_time_step | ( | self | ) |
Time of last time step normalised (multiplied) with h^d.
Definition at line 356 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData.total_time_stepping_steps, and exahype2.postprocessing.PerformanceData.PerformanceData.total_time_stepping_time.
exahype2.postprocessing.PerformanceData.PerformanceData.timesteps | ( | self | ) |
Should maybe eliminate the time steps that are not really steps.
Definition at line 345 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_max, and exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_min.
exahype2.postprocessing.PerformanceData.PerformanceData.uses_local_timestepping | ( | self | ) |
Definition at line 336 of file PerformanceData.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_max, and exahype2.postprocessing.PerformanceData.PerformanceData._time_step_size_min.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_simulated_time_stamps(), and exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_time_step_size().
|
protected |
Definition at line 37 of file PerformanceData.py.
|
protected |
Definition at line 138 of file PerformanceData.py.
|
protected |
Definition at line 32 of file PerformanceData.py.
Referenced by peano4.visualisation.output.Visualiser.Visualiser.display_single_file(), exahype2.postprocessing.PerformanceData.PerformanceData.parse(), peano4.visualisation.output.Visualiser.Visualiser.read_metadata(), and peano4.visualisation.output.VTUUnstructuredGrid.VTUUnstructuredGrid.write_vtu().
|
protected |
Definition at line 56 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__().
|
protected |
Definition at line 67 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__extract_time_stamp_from_run_call().
|
protected |
Definition at line 36 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__().
|
protected |
Definition at line 50 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_simulated_time_stamps(), and exahype2.postprocessing.PerformanceData.PerformanceData.remove_first_n_entries().
|
protected |
Definition at line 51 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_simulated_time_stamps(), and exahype2.postprocessing.PerformanceData.PerformanceData.remove_first_n_entries().
|
protected |
Definition at line 33 of file PerformanceData.py.
Referenced by exahype2.grid.CellLabel.UpdateCellLabel.get_body_of_operation(), and exahype2.grid.FaceLabel.UpdateFaceLabel.get_body_of_operation().
|
protected |
Definition at line 35 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().
|
protected |
Definition at line 52 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_time_step_size(), exahype2.postprocessing.PerformanceData.PerformanceData.remove_first_n_entries(), exahype2.postprocessing.PerformanceData.PerformanceData.timesteps(), and exahype2.postprocessing.PerformanceData.PerformanceData.uses_local_timestepping().
|
protected |
Definition at line 53 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_time_step_size(), exahype2.postprocessing.PerformanceData.PerformanceData.remove_first_n_entries(), exahype2.postprocessing.PerformanceData.PerformanceData.timesteps(), and exahype2.postprocessing.PerformanceData.PerformanceData.uses_local_timestepping().
|
protected |
Definition at line 49 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_time_per_time_step(), exahype2.postprocessing.PerformanceData.PerformanceData.get_time_step_real_time_stamps(), and exahype2.postprocessing.PerformanceData.PerformanceData.remove_first_n_entries().
|
protected |
Definition at line 54 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.get_updates().
exahype2.postprocessing.PerformanceData.PerformanceData.plotting_time_stamp |
Definition at line 47 of file PerformanceData.py.
exahype2.postprocessing.PerformanceData.PerformanceData.total_construction_steps |
Definition at line 43 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__().
exahype2.postprocessing.PerformanceData.PerformanceData.total_construction_time |
Definition at line 39 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__().
exahype2.postprocessing.PerformanceData.PerformanceData.total_plotting_steps |
Definition at line 45 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__().
exahype2.postprocessing.PerformanceData.PerformanceData.total_plotting_time |
Definition at line 41 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__().
exahype2.postprocessing.PerformanceData.PerformanceData.total_time_stepping_steps |
Definition at line 44 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__(), and exahype2.postprocessing.PerformanceData.PerformanceData.time_per_time_step().
exahype2.postprocessing.PerformanceData.PerformanceData.total_time_stepping_time |
Definition at line 40 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__(), and exahype2.postprocessing.PerformanceData.PerformanceData.time_per_time_step().
exahype2.postprocessing.PerformanceData.PerformanceData.valid |
Definition at line 69 of file PerformanceData.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__(), peano4.toolbox.particles.postprocessing.Dataset.Dataset.parse(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().