Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct cartesian_dimension

boost::mpi::cartesian_dimension — Specify the size and periodicity of the grid in a single dimension.


// In header: <boost/mpi/cartesian_communicator.hpp>

struct cartesian_dimension {
  // construct/copy/destruct
  cartesian_dimension(int = 0, bool = false);

  // private member functions
  template<typename Archive> void serialize(Archive &, const unsigned int);

  // public data members
  int size;
  bool periodic;


POD lightweight object.

cartesian_dimension public construct/copy/destruct

  1. cartesian_dimension(int sz = 0, bool p = false);

cartesian_dimension private member functions

  1. template<typename Archive> 
      void serialize(Archive & ar, const unsigned int version);

cartesian_dimension public public data members

  1. int size;

    The size of the grid n this dimension.

  2. bool periodic;

    Is the grid periodic in this dimension.