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:
@@ -157,7 +157,7 @@ void RivFaultGeometryGenerator::computeArrays()
|
|||||||
const std::vector<RigFault::FaultFace>& faultFaces = m_fault->faultFaces();
|
const std::vector<RigFault::FaultFace>& faultFaces = m_fault->faultFaces();
|
||||||
|
|
||||||
#pragma omp parallel for
|
#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;
|
size_t cellIndex = faultFaces[fIdx].m_nativeGlobalCellIndex;
|
||||||
cvf::StructGridInterface::FaceType face = faultFaces[fIdx].m_nativeFace;
|
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)
|
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];
|
const FaultFace& ff = m_faultFaces[ffIdx];
|
||||||
|
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ void RigMainGrid::setFaults(const cvf::Collection<RigFault>& faults)
|
|||||||
m_faults = faults;
|
m_faults = faults;
|
||||||
|
|
||||||
#pragma omp parallel for
|
#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());
|
m_faults[i]->computeFaultFacesFromCellRanges(this->mainGrid());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user