OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

ParSortableList< Type > Class Template Reference

Implementation of PSRS parallel sorting routine. More...

Inheritance diagram for ParSortableList< Type >:
Collaboration diagram for ParSortableList< Type >:

List of all members.


Classes

class  taggedValue
 Private class for sorting. Sorts on value_.

Public Member Functions

 ParSortableList (const UList< Type > &)
 Construct from List, sorting the elements.
 ParSortableList (const label size)
 Construct given size. Sort later on.
void sort ()
 (stable) sort the list (if changed after construction time)
const labelList & indices () const
 Return the list of sorted point indices.
const labelList & procs () const
 Return the list of processor number.

Detailed Description

template<class Type>
class Foam::ParSortableList< Type >

Implementation of PSRS parallel sorting routine.

From "On the Versatility of Parallel Sorting by Regular Sampling" Xiaobo Li et. all.

Construct from list of things to sort (uses SortableList, 'thing' should implement >, ==).

Will contain sorted data and in

Can also be constructed from size, filled at ease and then sort()'ed.

Source files

Definition at line 65 of file ParSortableList.H.


Constructor & Destructor Documentation

ParSortableList ( const UList< Type > &  values  )  [inline]

Construct from List, sorting the elements.

Definition at line 119 of file ParSortableList.C.

ParSortableList ( const label  size  )  [inline]

Construct given size. Sort later on.

Definition at line 131 of file ParSortableList.C.

References Foam::sort().

Here is the call graph for this function:


Member Function Documentation

void sort (  )  [inline]

(stable) sort the list (if changed after construction time)

Definition at line 143 of file ParSortableList.C.

const labelList& indices (  )  const [inline]

Return the list of sorted point indices.

Definition at line 182 of file ParSortableList.H.

const labelList& procs (  )  const [inline]

Return the list of processor number.

Definition at line 188 of file ParSortableList.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd