Skip to content

Commit

Permalink
Refactor scatterer addition in aGblPoint to explicitly specify type f…
Browse files Browse the repository at this point in the history
…or scatPrecision.inverse()
  • Loading branch information
mmusich authored and sroychow committed Mar 8, 2024
1 parent 81cb0a9 commit 409969f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Alignment/ReferenceTrajectories/src/ReferenceTrajectory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ bool ReferenceTrajectory::addMaterialEffectsLocalGbl(const std::vector<Algebraic
}
} else {
// GBL add scatterer to point
aGblPoint.addScatterer(scatterer, scatPrecision.inverse());
aGblPoint.addScatterer(scatterer, Eigen::Matrix2d(scatPrecision.inverse()));
}
// add point to list
GblPointList.push_back(aGblPoint);
Expand Down Expand Up @@ -1129,7 +1129,7 @@ bool ReferenceTrajectory::addMaterialEffectsCurvlinGbl(const std::vector<Algebra
}

// GBL add scatterer to point
aGblPoint.addScatterer(scatterer, scatPrecDiag);
aGblPoint.addScatterer(scatterer, Eigen::Vector2d(scatPrecDiag));

// add point to list
GblPointList.push_back(aGblPoint);
Expand Down

0 comments on commit 409969f

Please sign in to comment.