Skip to content

Commit

Permalink
More bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe committed Jun 29, 2024
1 parent 2236a10 commit 465a738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adjoint/DAObjFunc/DAObjFuncVariance.C
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 465a738

Please sign in to comment.