| version 1.18 | version 1.19 | ||
|---|---|---|---|
|
| ||
| // reallocate the array in case the grid params have just changed | // reallocate the array in case the grid params have just changed | ||
| if (new_params) { | if (new_params) { | ||
| init_from_boundaries(); | init_from_boundaries(); | ||
| // data.resize(0); // no longer needed: setup calls clear() | // data.clear(); // no longer needed: setup calls clear() | ||
| return this->setup(nx, T(), mult); | return this->setup(nx, T(), mult); | ||
| } | } | ||
Legend:
| ||||||