GridFormat 0.4.0
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
GridFormat::VTKHDF::IOContext Struct Reference

Helper class to store processor offsets in parallel writes.

#include <hdf_common.hpp>

Public Member Functions

 IOContext (int _my_rank, int _num_ranks, std::vector< std::size_t > _rank_cells, std::vector< std::size_t > _rank_points)
 

Static Public Member Functions

template<Concepts::Grid Grid, Concepts::Communicator Communicator>
static IOContext from (const Grid &grid, const Communicator &comm, int root_rank=0)
 

Public Attributes

const int my_rank
 
const int num_ranks
 
const bool is_parallel
 
const std::vector< std::size_t > rank_cells
 
const std::vector< std::size_t > rank_points
 
const std::size_t num_cells_total
 
const std::size_t num_points_total
 
const std::size_t my_cell_offset
 
const std::size_t my_point_offset
 

The documentation for this struct was generated from the following file: