Public Member Functions | |
template<class Type > | |
Type | flatten (const List< Type > lst) |
Static Public Member Functions | |
template<class T > | |
static T | flatten (const List< T >) |
Flatten: appends all elements of list into one single list. More... | |
template<class DataType , class IndexType , class AddOp > | |
static IndexType | offset (const List< DataType > &values, const List< IndexType > &indices, AddOp aop) |
Flatten and offset 'Gathered' indices (into value) so they. More... | |
Flatten: appends all elements of list into one single list.
Used to collapse 'Gathered' data.
|
static |
Flatten and offset 'Gathered' indices (into value) so they.
remain valid with respect to values (after they have been flattened)
Definition at line 65 of file GatherBase.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, List::size(), and Foam::sum().
Type flatten | ( | const List< Type > | lst | ) |
Definition at line 36 of file GatherBase.C.
References forAll, List::size(), and Foam::sum().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.