mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixes of linux compile errors and warnings
This commit is contained in:
@@ -254,8 +254,9 @@ void RivFemPartPartMgr::updateCellResultColor(size_t timeStepIndex, RimGeoMechRe
|
||||
m_surfaceFacesTextureCoords->resize(vxToResultMapping->size());
|
||||
cvf::Vec2f* rawPtr = m_surfaceFacesTextureCoords->ptr();
|
||||
|
||||
int vxCount = static_cast<int>(vxToResultMapping->size());
|
||||
#pragma omp parallel for schedule(dynamic)
|
||||
for (int vxIdx = 0; vxIdx < vxToResultMapping->size(); ++vxIdx)
|
||||
for (int vxIdx = 0; vxIdx < vxCount; ++vxIdx)
|
||||
{
|
||||
float resultValue = resultValues[(*vxToResultMapping)[vxIdx]];
|
||||
if (resultValue == HUGE_VAL || resultValue != resultValue) // a != a is true for NAN's
|
||||
|
||||
@@ -54,7 +54,7 @@ void RivGeoMechPartMgr::clearAndSetReservoir(const RigGeoMechCaseData* geoMechCa
|
||||
{
|
||||
const RigFemPartCollection* femParts = geoMechCase->femParts();
|
||||
|
||||
for (size_t i = 0; i < femParts->partCount(); ++i)
|
||||
for (int i = 0; i < femParts->partCount(); ++i)
|
||||
{
|
||||
m_femPartPartMgrs.push_back(new RivFemPartPartMgr(femParts->part(i)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user