| Home | Libraries | People | FAQ | More

## Struct cartesian_dimension

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

## Synopsis

    // 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;
    };

## Description

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.