ls1-MarDyn
ls1-MarDyn molecular dynamics code
Functions
GeneralDomainDecomposition.cpp File Reference
#include "GeneralDomainDecomposition.h"
#include "ALLLoadBalancer.h"
#include "Domain.h"
#include "NeighborAcquirer.h"
#include "NeighbourCommunicationScheme.h"

Functions

template<typename ArrayType >
std::vector< size_t > getOrdering (const ArrayType &data)
 

Detailed Description

Author
seckler
Date
11.04.19

Function Documentation

◆ getOrdering()

template<typename ArrayType >
std::vector<size_t> getOrdering ( const ArrayType &  data)

Get the ordering of the input data. The ordering will contain indices of elements of data, starting with the smallest going to the biggest. e.g.: returns {2, 0, 3, 1} for data={5, 16, 4, 7}

Template Parameters
ArrayTypeshould be some array type, e.g., vector of int
Parameters
datathe data to define the order
Returns
The ordering.