25 #include <queso/StdOneDGrid.h>
33 const std::vector<T>& points)
60 return m_points.size();
69 "StdOneDGrid<V,M>::operator[]",
79 UQ_FATAL_TEST_MACRO((paramValue < m_points[0]) || (m_points[m_points.size()-1] < paramValue),
81 "StdOneDGrid<V,M>::findIntervalId[]",
82 "paramValue is out of domain");
84 unsigned int iMax = m_points.size();
86 for (i = 1; i < iMax; ++i) {
87 if (paramValue < m_points[i]) {
T operator[](unsigned int i) const
Returns the position of the i-th point in the grid.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Base class for accommodating one-dimensional grids.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
unsigned int size() const
Grid size; the amount of points which defines the grid.
unsigned int findIntervalId(const T ¶mValue) const
Finds the ID of an interval. See template specialization.
unsigned int displayVerbosity() const
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
~StdOneDGrid()
Destructor.
const BaseEnvironment & m_env
StdOneDGrid(const BaseEnvironment &env, const char *prefix, const std::vector< T > &points)
Default constructor.