From 8c213da93226859e741ac108333f1b08c4db7b24 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 21 Sep 2018 16:25:26 -0400 Subject: [PATCH] [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. --- samples/cxx/bvp/BoundaryValueProblem.h | 2 +- src/oneD/refine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/cxx/bvp/BoundaryValueProblem.h b/samples/cxx/bvp/BoundaryValueProblem.h index 58f7e2a50..de72c445c 100644 --- a/samples/cxx/bvp/BoundaryValueProblem.h +++ b/samples/cxx/bvp/BoundaryValueProblem.h @@ -143,7 +143,7 @@ public: if (m_sim == 0) { start(); } - bool refine = true; + bool refine = false; m_sim->solve(loglevel, refine); } diff --git a/src/oneD/refine.cpp b/src/oneD/refine.cpp index 7a3593ad0..be53fccac 100644 --- a/src/oneD/refine.cpp +++ b/src/oneD/refine.cpp @@ -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; } }