Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
memory_report.h File Reference
#include "definitions.h"
#include "spatial_cells/spatial_cell_wrapper.hpp"
#include <dccrg.hpp>
#include <dccrg_cartesian_geometry.hpp>
Include dependency graph for memory_report.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void report_cell_and_block_counts (const dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid)
void report_memory_consumption (const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, double extra_bytes=0.0)

Function Documentation

◆ report_cell_and_block_counts()

void report_cell_and_block_counts ( const dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid)

Report spatial cell counts per refinement level as well as velocity cell counts per population into logfile

◆ report_memory_consumption()

void report_memory_consumption ( const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
double extra_bytes = 0.0 )

Measures memory consumption and writes it into logfile. Collective operation on MPI_COMM_WORLD extra_bytes is used for additional buffer for the high water mark, for example when estimating refinement memory usage