Skip to content

Commit 542572e

Browse files
authored
Update SU2_CFD/src/output/CFlowOutput.cpp
1 parent 8d3ddca commit 542572e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,7 @@ void CFlowOutput::SetCustomOutputs(const CSolver* const* solver, const CGeometry
908908
if (useADT && probeADT && !probeADT->IsEmpty()) {
909909
/*--- Use ADT to find the nearest node efficiently (O(log n) instead of O(n)). ---*/
910910
probeADT->DetermineNearestNode(coord, minDist, minPoint, rankID);
911+
minDist = pow(minDist, 2);
911912

912913
/*--- Check if this rank owns the nearest point. ---*/
913914
output.iPoint = (rankID == rank) ? minPoint : CustomOutput::PROBE_NOT_OWNED;

0 commit comments

Comments
 (0)