mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix linux compile error and warnings
This commit is contained in:
parent
6d07e7a8ff
commit
afea6963b2
@ -182,7 +182,7 @@ void RivSurfaceIntersectionGeometryGenerator::calculateArrays()
|
|||||||
// End loop local memory
|
// End loop local memory
|
||||||
|
|
||||||
#pragma omp for // default scheduling absolutely best
|
#pragma omp for // default scheduling absolutely best
|
||||||
for ( int ntVxIdx = 0; ntVxIdx < nativeTriangleIndices.size(); ntVxIdx += 3 )
|
for ( int ntVxIdx = 0; ntVxIdx < static_cast<int>( nativeTriangleIndices.size() ); ntVxIdx += 3 )
|
||||||
{
|
{
|
||||||
cvf::Vec3d p0 = nativeVertices[nativeTriangleIndices[ntVxIdx + 0]];
|
cvf::Vec3d p0 = nativeVertices[nativeTriangleIndices[ntVxIdx + 0]];
|
||||||
cvf::Vec3d p1 = nativeVertices[nativeTriangleIndices[ntVxIdx + 1]];
|
cvf::Vec3d p1 = nativeVertices[nativeTriangleIndices[ntVxIdx + 1]];
|
||||||
|
@ -450,7 +450,7 @@ void RivSurfacePartMgr::calculateVertexTextureCoordinates( cvf::Vec2fArray*
|
|||||||
{
|
{
|
||||||
if ( !resultAccessor ) return;
|
if ( !resultAccessor ) return;
|
||||||
|
|
||||||
size_t numVertices = vertexToCellIdxMap.size();
|
int numVertices = static_cast<int>( vertexToCellIdxMap.size() );
|
||||||
|
|
||||||
textureCoords->resize( numVertices );
|
textureCoords->resize( numVertices );
|
||||||
cvf::Vec2f* rawPtr = textureCoords->ptr();
|
cvf::Vec2f* rawPtr = textureCoords->ptr();
|
||||||
|
@ -707,7 +707,7 @@ void RimAnalysisPlot::addDataToChartBuilder( RiuGroupedBarChartBuilder& chartBui
|
|||||||
|
|
||||||
for ( time_t tt : selectedTimesteps )
|
for ( time_t tt : selectedTimesteps )
|
||||||
{
|
{
|
||||||
for ( int timestepIdx = 0; timestepIdx < timesteps.size(); ++timestepIdx )
|
for ( int timestepIdx = 0; static_cast<unsigned>( timestepIdx ) < timesteps.size(); ++timestepIdx )
|
||||||
{
|
{
|
||||||
if ( timesteps[timestepIdx] == tt )
|
if ( timesteps[timestepIdx] == tt )
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return "X"; // Just for debugging
|
return QwtText( QString( "X" ) ); // Just for debugging
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user