mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix of linux Compile warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user