mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-03 12:16:45 -05:00
Minor code cleanup
This commit is contained in:
1 parent
50a766591b
commit
62c7007654
2 files changed
+3
-5
No files matched your search
@@ -58,7 +58,7 @@ bool RifGeoMechReaderInterface::isTimeStepIncludedByFilter( int timeStepIndex )
|
|||||||
|
|
||||||
for ( auto i : m_fileTimeStepIndices )
|
for ( auto i : m_fileTimeStepIndices )
|
||||||
{
|
{
|
||||||
if ( i == static_cast<size_t>( timeStepIndex ) )
|
if ( i == timeStepIndex )
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Copyright (C) 2023- Equinor ASA
|
// Copyright (C) 2023 Equinor ASA
|
||||||
//
|
//
|
||||||
// ResInsight is free software: you can redistribute it and/or modify
|
// ResInsight is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
@@ -16,8 +16,6 @@
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "RifInpIncludeReader.h"
|
#include "RifInpIncludeReader.h"
|
||||||
|
|
||||||
#include "RiaStdStringTools.h"
|
#include "RiaStdStringTools.h"
|
||||||
@@ -89,7 +87,7 @@ void RifInpIncludeReader::readData( int columnIndex, const std::map<int, std::st
|
|||||||
|
|
||||||
// is the requested column present?
|
// is the requested column present?
|
||||||
auto columns = RiaStdStringTools::splitString( line, ',' );
|
auto columns = RiaStdStringTools::splitString( line, ',' );
|
||||||
if ( columnIndex >= columns.size() ) continue;
|
if ( columnIndex >= (int)columns.size() ) continue;
|
||||||
|
|
||||||
// split part/set/node/element in first column
|
// split part/set/node/element in first column
|
||||||
auto partNode = RiaStdStringTools::splitString( columns[0], '.' );
|
auto partNode = RiaStdStringTools::splitString( columns[0], '.' );
|
||||||
|
|||||||
Reference in new issue
Block a user