MeDiPack  1.3.0
A Message Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
medi::LinearDisplacements Struct Reference

Helper structure for the easy creation of a linear displacement with a the same length. More...

#include <displacementTools.hpp>

Public Member Functions

 LinearDisplacements (int commSize, int length)
 Create displacemnts where each displacement has the size length.
 
 ~LinearDisplacements ()
 Destroy the structure.
 

Static Public Member Functions

static void deleteFunc (void *d)
 Helper function for deleting a LinearDisplacements structure.
 

Public Attributes

int * counts
 The array with the counts.
 
int * displs
 The array with the displacements.
 

Detailed Description

Helper structure for the easy creation of a linear displacement with a the same length.

Constructor & Destructor Documentation

◆ LinearDisplacements()

medi::LinearDisplacements::LinearDisplacements ( int commSize,
int length )
inline

Create displacemnts where each displacement has the size length.

displs[0] = 0; displs[1] = length; displs[2] = 2 * length; ...

counts[i] = length;

Parameters
[in]commSizeThe size of the communication object.
[in]lengthThe length of each displacement.

◆ ~LinearDisplacements()

medi::LinearDisplacements::~LinearDisplacements ( )
inline

Destroy the structure.

Member Function Documentation

◆ deleteFunc()

static void medi::LinearDisplacements::deleteFunc ( void * d)
inlinestatic

Helper function for deleting a LinearDisplacements structure.

Parameters
[in]dThe pointer to a LinearDisplacements structure that will be deleted.

Member Data Documentation

◆ counts

int* medi::LinearDisplacements::counts

The array with the counts.

◆ displs

int* medi::LinearDisplacements::displs

The array with the displacements.


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