|
Peano
|
Represents single output file dumped by Peano. More...


Public Member Functions | |
| __init__ (self, name, verbose=False) | |
| parse (self) | |
| Parse Peano output file. | |
| ranks (self) | |
| threads_per_rank (self) | |
| runtime (self) | |
| Read out the total runtime. | |
| trees_per_snapshot (self, rank) | |
| Return a sequence of integers that holds the number of trees per snapshot. | |
| local_cells_per_snapshot (self, rank) | |
| Return local cells per snaphot. | |
| virtual_cells_per_snapshot (self, rank) | |
| Return local cells per snaphot. | |
| total_local_cells_per_snapshot (self, rank) | |
| Return the total number of cells per snapshot for this rank. | |
| min_local_cells_per_snapshot (self, rank) | |
| Return the total number of cells per snapshot for this rank. | |
| max_local_cells_per_snapshot (self, rank) | |
| Return the total number of cells per snapshot for this rank. | |
| min_virtual_cells_per_snapshot (self, rank) | |
| Return the total number of cells per snapshot for this rank. | |
| max_virtual_cells_per_snapshot (self, rank) | |
| Return the total number of cells per snapshot for this rank. | |
| is_valid (self) | |
Protected Attributes | |
| _file_name | |
| _has_parsed | |
| _verbose | |
| _snapshot_lines | |
| _ranks | |
| _threads | |
| _runtime | |
Represents single output file dumped by Peano.
This class extracts all the load balancing-related information from an output file, i.e. is basically an abstraction of a file parser. It also holds some very basic runtime data.
| name | File name |
Definition at line 4 of file OutputFile.py.
| OutputFile.OutputFile.__init__ | ( | self, | |
| name, | |||
| verbose = False ) |
Definition at line 15 of file OutputFile.py.
| OutputFile.OutputFile.is_valid | ( | self | ) |
Definition at line 292 of file OutputFile.py.
| OutputFile.OutputFile.local_cells_per_snapshot | ( | self, | |
| rank ) |
Return local cells per snaphot.
This is a sequence of sequences. For each snapshot for this rank, we store one sequence with all the local cells in this snapshot. The standard plot_load_distribution.py script feeds this data into a scatter plot. For many cases, we might however be interested in the maximum value:
Definition at line 131 of file OutputFile.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._ranks, OutputFile.OutputFile._ranks, OutputFile.OutputFile._snapshot_lines, convert::input::PeanoTextPatchFileReader.parse(), convert::input::MetaFileReader.parse(), convert::input::PatchFileReader.parse(), toolbox::curvi::YAMLInput.parse(), OutputFile.OutputFile.parse(), peano4.toolbox.particles.postprocessing.Dataset.Dataset.parse(), exahype2.kerneldsl.Parser.Parser.parse(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().
Referenced by OutputFile.OutputFile.max_local_cells_per_snapshot(), OutputFile.OutputFile.min_local_cells_per_snapshot(), and OutputFile.OutputFile.total_local_cells_per_snapshot().


| OutputFile.OutputFile.max_local_cells_per_snapshot | ( | self, | |
| rank ) |
Return the total number of cells per snapshot for this rank.
The total number of cells is an interesting quantity, as it allows us to compare the load of different ranks.
Definition at line 232 of file OutputFile.py.
References OutputFile.OutputFile.local_cells_per_snapshot().

| OutputFile.OutputFile.max_virtual_cells_per_snapshot | ( | self, | |
| rank ) |
Return the total number of cells per snapshot for this rank.
The total number of cells is an interesting quantity, as it allows us to compare the load of different ranks.
Definition at line 272 of file OutputFile.py.
References OutputFile.OutputFile.virtual_cells_per_snapshot().

| OutputFile.OutputFile.min_local_cells_per_snapshot | ( | self, | |
| rank ) |
Return the total number of cells per snapshot for this rank.
The total number of cells is an interesting quantity, as it allows us to compare the load of different ranks.
Definition at line 212 of file OutputFile.py.
References OutputFile.OutputFile.local_cells_per_snapshot().

| OutputFile.OutputFile.min_virtual_cells_per_snapshot | ( | self, | |
| rank ) |
Return the total number of cells per snapshot for this rank.
The total number of cells is an interesting quantity, as it allows us to compare the load of different ranks.
Definition at line 252 of file OutputFile.py.
References OutputFile.OutputFile.virtual_cells_per_snapshot().

| OutputFile.OutputFile.parse | ( | self | ) |
Parse Peano output file.
Build up a tuple of (x_data,y_data_local,y_data_remote) internally but also extract some meta data
Definition at line 26 of file OutputFile.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._file_name, peano4.visualisation.output.Visualiser.Visualiser._file_name, peano4.visualisation.output.VTUUnstructuredGrid.VTUUnstructuredGrid._file_name, OutputFile.OutputFile._file_name, OutputFile.OutputFile._has_parsed, peano4.toolbox.particles.postprocessing.ParticleVTUReader.ParticleVTUReader._verbose, and OutputFile.OutputFile._verbose.
Referenced by OutputFile.OutputFile.local_cells_per_snapshot(), OutputFile.OutputFile.ranks(), OutputFile.OutputFile.runtime(), OutputFile.OutputFile.threads_per_rank(), OutputFile.OutputFile.trees_per_snapshot(), and OutputFile.OutputFile.virtual_cells_per_snapshot().

| OutputFile.OutputFile.ranks | ( | self | ) |
Definition at line 89 of file OutputFile.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._ranks, OutputFile.OutputFile._ranks, convert::input::PeanoTextPatchFileReader.parse(), convert::input::MetaFileReader.parse(), convert::input::PatchFileReader.parse(), toolbox::curvi::YAMLInput.parse(), OutputFile.OutputFile.parse(), peano4.toolbox.particles.postprocessing.Dataset.Dataset.parse(), exahype2.kerneldsl.Parser.Parser.parse(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().

| OutputFile.OutputFile.runtime | ( | self | ) |
Read out the total runtime.
Definition at line 101 of file OutputFile.py.
References OutputFile.OutputFile._runtime, convert::input::PeanoTextPatchFileReader.parse(), convert::input::MetaFileReader.parse(), convert::input::PatchFileReader.parse(), toolbox::curvi::YAMLInput.parse(), OutputFile.OutputFile.parse(), peano4.toolbox.particles.postprocessing.Dataset.Dataset.parse(), exahype2.kerneldsl.Parser.Parser.parse(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().

| OutputFile.OutputFile.threads_per_rank | ( | self | ) |
Definition at line 95 of file OutputFile.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._threads, OutputFile.OutputFile._threads, convert::input::PeanoTextPatchFileReader.parse(), convert::input::MetaFileReader.parse(), convert::input::PatchFileReader.parse(), toolbox::curvi::YAMLInput.parse(), OutputFile.OutputFile.parse(), peano4.toolbox.particles.postprocessing.Dataset.Dataset.parse(), exahype2.kerneldsl.Parser.Parser.parse(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().

| OutputFile.OutputFile.total_local_cells_per_snapshot | ( | self, | |
| rank ) |
Return the total number of cells per snapshot for this rank.
The total number of cells is an interesting quantity, as it allows us to compare the load of different ranks.
Definition at line 192 of file OutputFile.py.
References OutputFile.OutputFile.local_cells_per_snapshot().

| OutputFile.OutputFile.trees_per_snapshot | ( | self, | |
| rank ) |
Return a sequence of integers that holds the number of trees per snapshot.
Definition at line 111 of file OutputFile.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._ranks, OutputFile.OutputFile._ranks, OutputFile.OutputFile._snapshot_lines, convert::input::PeanoTextPatchFileReader.parse(), convert::input::MetaFileReader.parse(), convert::input::PatchFileReader.parse(), toolbox::curvi::YAMLInput.parse(), OutputFile.OutputFile.parse(), peano4.toolbox.particles.postprocessing.Dataset.Dataset.parse(), exahype2.kerneldsl.Parser.Parser.parse(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().

| OutputFile.OutputFile.virtual_cells_per_snapshot | ( | self, | |
| rank ) |
Return local cells per snaphot.
This is a sequence of sequences. For each snapshot for this rank, we store one sequence with all the local cells in this snapshot.
Definition at line 165 of file OutputFile.py.
References exahype2.postprocessing.PerformanceData.PerformanceData._ranks, OutputFile.OutputFile._ranks, OutputFile.OutputFile._snapshot_lines, convert::input::PeanoTextPatchFileReader.parse(), convert::input::MetaFileReader.parse(), convert::input::PatchFileReader.parse(), toolbox::curvi::YAMLInput.parse(), OutputFile.OutputFile.parse(), peano4.toolbox.particles.postprocessing.Dataset.Dataset.parse(), exahype2.kerneldsl.Parser.Parser.parse(), and exahype2.postprocessing.PerformanceData.PerformanceData.parse().
Referenced by OutputFile.OutputFile.max_virtual_cells_per_snapshot(), and OutputFile.OutputFile.min_virtual_cells_per_snapshot().


|
protected |
Definition at line 20 of file OutputFile.py.
Referenced by peano4.visualisation.output.Visualiser.Visualiser.display_single_file(), OutputFile.OutputFile.parse(), exahype2.postprocessing.PerformanceData.PerformanceData.parse(), peano4.visualisation.output.Visualiser.Visualiser.read_metadata(), and peano4.visualisation.output.VTUUnstructuredGrid.VTUUnstructuredGrid.write_vtu().
|
protected |
Definition at line 21 of file OutputFile.py.
Referenced by OutputFile.OutputFile.parse().
|
protected |
Definition at line 51 of file OutputFile.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__(), OutputFile.OutputFile.local_cells_per_snapshot(), OutputFile.OutputFile.ranks(), OutputFile.OutputFile.trees_per_snapshot(), and OutputFile.OutputFile.virtual_cells_per_snapshot().
|
protected |
Definition at line 66 of file OutputFile.py.
Referenced by OutputFile.OutputFile.runtime().
|
protected |
Definition at line 45 of file OutputFile.py.
Referenced by OutputFile.OutputFile.local_cells_per_snapshot(), OutputFile.OutputFile.trees_per_snapshot(), and OutputFile.OutputFile.virtual_cells_per_snapshot().
|
protected |
Definition at line 53 of file OutputFile.py.
Referenced by exahype2.postprocessing.PerformanceData.PerformanceData.__str__(), exahype2.postprocessing.PerformanceData.PerformanceData.parse(), and OutputFile.OutputFile.threads_per_rank().
|
protected |
Definition at line 22 of file OutputFile.py.
Referenced by peano4.toolbox.particles.postprocessing.ParticleVTUReader.ParticleVTUReader._get_snapshot_vtu_files_from_pvd(), OutputFile.OutputFile.parse(), and peano4.toolbox.particles.postprocessing.ParticleVTUReader.ParticleVTUReader.read_single_vtu_file().