From 0b0747a8ec4be4eb7084a309d38db12736975843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Tue, 23 May 2017 07:35:51 +0200 Subject: [PATCH] #1506 Fixes linux compile errors and some warnings --- ApplicationCode/FileInterface/RifFractureExportTools.cpp | 8 ++++---- .../ReservoirDataModel/RigWellPathStimplanIntersector.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ApplicationCode/FileInterface/RifFractureExportTools.cpp b/ApplicationCode/FileInterface/RifFractureExportTools.cpp index cca8d177f4..f9fa8e67d8 100644 --- a/ApplicationCode/FileInterface/RifFractureExportTools.cpp +++ b/ApplicationCode/FileInterface/RifFractureExportTools.cpp @@ -201,7 +201,7 @@ void RifFractureExportTools::exportWellPathFracturesToEclipseDataInputFile(const double cDarcyInCorrectUnit = caseToApply->eclipseCaseData()->darchysValue(); std::map > transmissibilitiesMap; //eclipseCellIndex (size_t), fracture (RimFracture) and trans value - //Getting fractures for well path + // Getting fractures for well path std::vector fractures; wellPath->descendantsIncludingThisOfType(fractures); @@ -238,7 +238,7 @@ void RifFractureExportTools::exportWellPathFracturesToEclipseDataInputFile(const std::vector stimPlanContributingEclipseCellTransmissibilities = eclToStimPlanTransCalc.contributingEclipseCellTransmissibilities(); // Add to condenser - for (int i = 0; i < stimPlanContributingEclipseCells.size(); i++) + for (size_t i = 0; i < stimPlanContributingEclipseCells.size(); i++) { condenser.addNeighborTransmissibility({ true, RigTransmissibilityCondenser::CellAddress::ECLIPSE, stimPlanContributingEclipseCells[i]}, { false, RigTransmissibilityCondenser::CellAddress::STIMPLAN, stimPlanCellIndex}, @@ -249,9 +249,9 @@ void RifFractureExportTools::exportWellPathFracturesToEclipseDataInputFile(const // Loop over stimplanecells (i, j) - for (int i = 0; i < fracTemplateStimPlan->stimPlanGridNumberOfColums(); i++) + for (size_t i = 0; i < fracTemplateStimPlan->stimPlanGridNumberOfColums(); i++) { - for (int j = 0; j < fracTemplateStimPlan->stimPlanGridNumberOfRows(); j++) + for (size_t j = 0; j < fracTemplateStimPlan->stimPlanGridNumberOfRows(); j++) { //TODO: Check that cond > 0 size_t stimPlanCellIndex = fracTemplateStimPlan->getGlobalIndexFromIJ(i, j); diff --git a/ApplicationCode/ReservoirDataModel/RigWellPathStimplanIntersector.cpp b/ApplicationCode/ReservoirDataModel/RigWellPathStimplanIntersector.cpp index 4bb9894169..cc133f8253 100644 --- a/ApplicationCode/ReservoirDataModel/RigWellPathStimplanIntersector.cpp +++ b/ApplicationCode/ReservoirDataModel/RigWellPathStimplanIntersector.cpp @@ -8,7 +8,7 @@ #include "RigStimPlanFracTemplateCell.h" #include "RimStimPlanFractureTemplate.h" - +#include //-------------------------------------------------------------------------------------------------- /// Todo: Use only the perforated parts of the well path