mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux compile fixes
This commit is contained in:
parent
da5a1d8ff1
commit
9f87011ddd
@ -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();
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
#include "cvfObject.h"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user