mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#2176 Avoid use of pointer to a temporary
This commit is contained in:
1 parent
cf9f886856
commit
e231685d4c
1 file changed
+3
-1
@@ -129,7 +129,9 @@ void RigSimulationWellCenterLineCalculator::calculateWellPipeCenterlineFromWellF
|
||||
|
||||
const RigCell& whCell = eclipseCaseData->cellFromWellResultCell(wellFrame.wellHeadOrStartCell());
|
||||
cvf::Vec3d whStartPos = whCell.faceCenter(cvf::StructGridInterface::NEG_K);
|
||||
const RigWellResultPoint* whResCell = &(wellFrame.wellHeadOrStartCell());
|
||||
|
||||
RigWellResultPoint wellHead = wellFrame.wellHeadOrStartCell();
|
||||
const RigWellResultPoint* whResCell = &wellHead;
|
||||
|
||||
// Add extra coordinate between cell face and cell center
|
||||
// to make sure the well pipe terminated in a segment parallel to z-axis
|
||||
|
||||
Reference in new issue
Block a user