Skip to content

Commit

Permalink
Fixed a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe committed Jun 29, 2024
1 parent 19f212d commit 2236a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adjoint/DAObjFunc/DAObjFuncFieldInversion.C
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void DAObjFuncFieldInversion::calcObjFunc(
pRefCoords_[2] = pRefCoords[2];

pRef_ = 0.0;
label cellID = DAUtility::myFindCell(pRefCoords_);
label cellID = mesh_.findCell(pRefCoords_);
// only assign pRef if the required cell is found in processor
if (cellID != -1)
{
Expand Down

0 comments on commit 2236a10

Please sign in to comment.