[1D] Fix grid refinement for classes not derived from StFlow

This includes user-developed flow classes, as well as the BoundaryValueProblem
class used in the 'blasius' example.
This commit is contained in:
Ray Speth 2018-09-21 16:25:26 -04:00
parent ca8700fdd4
commit 8c213da932
2 changed files with 2 additions and 2 deletions

View file

@ -143,7 +143,7 @@ public:
if (m_sim == 0) {
start();
}
bool refine = true;
bool refine = false;
m_sim->solve(loglevel, refine);
}

View file

@ -185,7 +185,7 @@ int Refiner::analyze(size_t n, const doublereal* z,
}
// Keep the point where the temperature is fixed
if (fflame->domainType() == cFreeFlow && z[j] == fflame->m_zfixed) {
if (fflame && fflame->domainType() == cFreeFlow && z[j] == fflame->m_zfixed) {
m_keep[j] = 1;
}
}