mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
Fix of linux Compile warnings
This commit is contained in:
parent
bf6fba191e
commit
d4f5dd6803
@ -157,7 +157,7 @@ void RivFaultGeometryGenerator::computeArrays()
|
||||
const std::vector<RigFault::FaultFace>& faultFaces = m_fault->faultFaces();
|
||||
|
||||
#pragma omp parallel for
|
||||
for (int fIdx = 0; fIdx < faultFaces.size(); fIdx++)
|
||||
for (int fIdx = 0; fIdx < static_cast<int>(faultFaces.size()); fIdx++)
|
||||
{
|
||||
size_t cellIndex = faultFaces[fIdx].m_nativeGlobalCellIndex;
|
||||
cvf::StructGridInterface::FaceType face = faultFaces[fIdx].m_nativeFace;
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user