32 doublereal slope = 0.8,
33 doublereal curve = 0.8,
34 doublereal prune = -0.1) {
40 void setActive(
int comp,
bool state =
true) {
41 m_active[comp] = state;
60 int analyze(
size_t n,
const doublereal* z,
const doublereal* x);
61 int getNewGrid(
int n,
const doublereal* z,
int nn, doublereal* znew);
63 return static_cast<int>(m_loc.size());
66 bool newPointNeeded(
size_t j) {
67 return m_loc.find(j) != m_loc.end();
69 bool keepPoint(
size_t j) {
70 return (m_keep[j] != -1);
72 double value(
const double* x,
size_t i,
size_t j);
88 std::map<size_t, int> m_loc;
89 std::map<size_t, int> m_keep;
90 std::map<std::string, int> m_c;
91 std::vector<bool> m_active;
92 doublereal m_ratio, m_slope, m_curve, m_prune;
93 doublereal m_min_range;
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
doublereal m_gridmin
minimum grid spacing [m]
Base class for one-dimensional domains.
void setCriteria(doublereal ratio=10.0, doublereal slope=0.8, doublereal curve=0.8, doublereal prune=-0.1)
Set grid refinement criteria.
void setMaxPoints(int npmax)
Set the maximum number of points allowed in the domain.
void setGridMin(double gridmin)
Set the minimum allowable spacing between adjacent grid points [m].
Refine Domain1D grids so that profiles satisfy adaptation tolerances.
double gridMin() const
Returns the the minimum allowable spacing between adjacent grid points [m].