Skip to content

Commit

Permalink
prevent refinement from shifting two-point control points
Browse files Browse the repository at this point in the history
  • Loading branch information
wandadars committed Jan 6, 2024
1 parent b63b666 commit a93ae70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/oneD/refine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ int Refiner::analyze(size_t n, const double* z, const double* x)
if (fflame && fflame->isFree() && z[j] == fflame->m_zfixed) {
m_keep[j] = 1;
}

// Keep the point if it is a control point used for two-point flame control
if (fflame && fflame->twoPointControlEnabled() && (z[j] == fflame->m_zLeft || z[j] == fflame->m_zRight)) {
m_keep[j] = 1;
}

}

// Don't allow pruning to remove multiple adjacent grid points
Expand Down

0 comments on commit a93ae70

Please sign in to comment.