32 doublereal slope = 0.8,
33 doublereal curve = 0.8,
34 doublereal prune = -0.1);
36 void setActive(
int comp,
bool state =
true) {
37 m_active[comp] = state;
56 int analyze(
size_t n,
const doublereal* z,
const doublereal* x);
57 int getNewGrid(
int n,
const doublereal* z,
int nn, doublereal* znew);
59 return static_cast<int>(m_loc.size());
62 bool newPointNeeded(
size_t j) {
63 return m_loc.find(j) != m_loc.end();
65 bool keepPoint(
size_t j) {
66 return (m_keep[j] != -1);
68 double value(
const double* x,
size_t i,
size_t j);
84 std::map<size_t, int> m_loc;
85 std::map<size_t, int> m_keep;
86 std::map<std::string, int> m_c;
87 std::vector<bool> m_active;
88 doublereal m_ratio, m_slope, m_curve, m_prune;
89 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].