Linux compile fixes

This commit is contained in:
Jacob Storen 2015-06-03 04:22:34 -07:00
parent da5a1d8ff1
commit 9f87011ddd
3 changed files with 5 additions and 4 deletions

View File

@ -76,7 +76,7 @@ size_t RigFemPartCollection::totalElementCount() const
{
size_t elementCount = 0;
for (size_t i = 0; i < partCount(); i++)
for (int i = 0; i < partCount(); i++)
{
elementCount += part(i)->elementCount();
}

View File

@ -20,6 +20,7 @@
#pragma once
#include "cvfObject.h"
#include <vector>
#include <string>
//==================================================================================================
///

View File

@ -30,7 +30,7 @@
#include <cmath>
#include "cvfBoundingBox.h"
#include "cafProgressInfo.h"
#include "..\src\corelib\tools\qstring.h"
#include <QString>
//--------------------------------------------------------------------------------------------------
///
@ -148,9 +148,9 @@ RigFemScalarResultFrames* RigGeoMechCaseData::findOrLoadScalarResult(int partInd
std::vector<std::string> stepNames = m_readerInterface->stepNames();
frames = m_femPartResults[partIndex]->createScalarResult( resVarAddr);
for (int stepIndex = 0; stepIndex < stepNames.size(); ++stepIndex)
for (int stepIndex = 0; stepIndex < static_cast<int>(stepNames.size()); ++stepIndex)
{
std::vector<double > frameTimes = m_readerInterface->frameTimes((int)stepIndex);
std::vector<double > frameTimes = m_readerInterface->frameTimes(stepIndex);
for (int fIdx = 1; (size_t)fIdx < frameTimes.size() && fIdx < 2 ; ++fIdx) // Read only the second frame
{