fpmas-metamodel 1.0
|
#include <output.h>
Public Member Functions | |
CellsLocationOutput (BasicMetaModel &meta_model, std::string filename, std::size_t grid_width, std::size_t grid_height) | |
void | dump () override |
Dumps the current grid to a JSON file on the process 0 as a 2 dimension array such as json[y][x]
contains the process on which the grid cell at (x,y) is executed.
This is currently only available for GRID Environments, to perform visualisation in a Matplotlib pcolormesh for example. In order to visualise the process of each cell in a generic graph environment, consider using the DotOuput instead.
CellsLocationOutput::CellsLocationOutput | ( | BasicMetaModel & | meta_model, |
std::string | filename, | ||
std::size_t | grid_width, | ||
std::size_t | grid_height | ||
) |
CellsLocationOutput contructor.
meta_model | Model from which grid cells are gathered. |
filename | Name of the output file |
grid_width | Width of the grid |
grid_height | Height of the grid |
|
override |
Dumps data from the MetaModel to the JSON file.
Must be called on all processes.