Memosa-FVM  0.2
ArrayScalarTraits< PC< ORDER, DIM > > Struct Template Reference

#include <PC.h>

Static Public Member Functions

static void limit (PC< ORDER, DIM > &val, const double min, const double max)
 

Detailed Description

template<>
struct ArrayScalarTraits< PC< ORDER, DIM > >

Definition at line 375 of file PC.h.

Member Function Documentation

static void ArrayScalarTraits< PC< ORDER, DIM > >::limit ( PC< ORDER, DIM > &  val,
const double  min,
const double  max 
)
inlinestatic

Definition at line 377 of file PC.h.

References PC< ORDER, DIM >::_data, max(), and min().

378  {
379  if (val._data[0] < min)
380  val._data[0] = min;
381  else if (val._data[0] > max)
382  val._data[0] = max;
383  }
double max(double x, double y)
Definition: Octree.cpp:18
double min(double x, double y)
Definition: Octree.cpp:23
double _data[N]
Definition: PC.h:293

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