From 465a738d8cc54dd128e29479d060e152f24c35cc Mon Sep 17 00:00:00 2001 From: Ping He Date: Sat, 29 Jun 2024 18:36:46 -0500 Subject: [PATCH] More bug fix. --- src/adjoint/DAObjFunc/DAObjFuncVariance.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adjoint/DAObjFunc/DAObjFuncVariance.C b/src/adjoint/DAObjFunc/DAObjFuncVariance.C index 5ac06d6c..a32e40ee 100755 --- a/src/adjoint/DAObjFunc/DAObjFuncVariance.C +++ b/src/adjoint/DAObjFunc/DAObjFuncVariance.C @@ -207,7 +207,7 @@ DAObjFuncVariance::DAObjFuncVariance( forAll(probePointCoords_, idxI) { point pointCoord = {probePointCoords_[idxI][0], probePointCoords_[idxI][1], probePointCoords_[idxI][2]}; - label cellI = DAUtility::myFindCell(pointCoord); + label cellI = DAUtility::myFindCell(mesh_, pointCoord); if (cellI >= 0) { probeCellIndex_.append(cellI); @@ -286,7 +286,7 @@ DAObjFuncVariance::DAObjFuncVariance( forAll(probePointCoords_, idxI) { point pointCoord = {probePointCoords_[idxI][0], probePointCoords_[idxI][1], probePointCoords_[idxI][2]}; - label cellI = DAUtility::myFindCell(pointCoord); + label cellI = DAUtility::myFindCell(mesh_, pointCoord); if (cellI >= 0) { probeCellIndex_.append(cellI);