5 #ifndef _MULTIFIELDREDUCTION_H_
6 #define _MULTIFIELDREDUCTION_H_
14 typedef map<const Field*,shared_ptr<ArrayBase> >
ArrayMap;
33 bool operator<(
const double tolerance)
const;
37 shared_ptr<MultiFieldReduction>
operator-()
const;
42 void print(ostream &os)
const;
56 typedef shared_ptr<MultiFieldReduction>
MFRPtr;
DEFINE_TYPENAME("MultiFieldReduction")
void setMax(const MultiFieldReduction &o)
vector< shared_ptr< MultiFieldReduction > > MFReductionVector
ArrayBase & operator[](const Field &)
void addArray(const Field &aIndex, shared_ptr< ArrayBase > a)
virtual ~MultiFieldReduction()
shared_ptr< MultiFieldReduction > operator/(const MultiFieldReduction &o)
shared_ptr< MultiFieldReduction > normalize(const MultiFieldReduction &o)
double max(double x, double y)
MultiFieldReduction & operator+=(const MultiFieldReduction &ofield)
shared_ptr< ArrayBase > getArrayPtr(const Field &)
bool hasArray(const Field &aIndex) const
void limit(const double min, const double max)
ostream & operator<<(ostream &os, const MultiFieldReduction &x)
void print(ostream &os) const
shared_ptr< MultiFieldReduction > operator*(const MultiFieldReduction &o)
shared_ptr< MultiFieldReduction > MFRPtr
bool operator<(const double tolerance) const
double min(double x, double y)
map< const Field *, shared_ptr< ArrayBase > > ArrayMap
shared_ptr< MultiFieldReduction > operator-() const