[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:
parent
ca8700fdd4
commit
8c213da932
2 changed files with 2 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ public:
|
|||
if (m_sim == 0) {
|
||||
start();
|
||||
}
|
||||
bool refine = true;
|
||||
bool refine = false;
|
||||
m_sim->solve(loglevel, refine);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue