mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2176 Avoid use of pointer to a temporary
This commit is contained in:
parent
cf9f886856
commit
e231685d4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user