Fix of linux Compile warnings

This commit is contained in:
JacobStoren
2013-12-14 09:38:55 +01:00
parent bf6fba191e
commit d4f5dd6803
3 changed files with 4 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ void RigFault::computeFaultFacesFromCellRanges(const RigMainGrid* grid)
void RigFault::accumulateFaultsPrCell(RigFaultsPrCellAccumulator* faultsPrCellAcc, int faultIdx)
{
for (size_t ffIdx = 0; ffIdx < m_faultFaces.size(); ffIdx)
for (size_t ffIdx = 0; ffIdx < m_faultFaces.size(); ++ffIdx)
{
const FaultFace& ff = m_faultFaces[ffIdx];
@@ -147,4 +147,4 @@ void RigFault::accumulateFaultsPrCell(RigFaultsPrCellAccumulator* faultsPrCellA
faultsPrCellAcc->setFaultIdx(ff.m_oppositeGlobalCellIndex, cvf::StructGridInterface::oppositeFace(ff.m_nativeFace), faultIdx);
}
}
}

View File

@@ -200,7 +200,7 @@ void RigMainGrid::setFaults(const cvf::Collection<RigFault>& faults)
m_faults = faults;
#pragma omp parallel for
for (int i = 0; i < m_faults.size(); i++)
for (int i = 0; i < static_cast<int>(m_faults.size()); i++)
{
m_faults[i]->computeFaultFacesFromCellRanges(this->mainGrid());
}