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

@ -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;

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];

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());
}