mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#12367 VTK surface import: handle NaN in vtu file.
This commit is contained in:
1 parent
43cc4d5d95
commit
3081a02b90
3 files changed
+32
-4
No files matched your search
@@ -42,6 +42,13 @@ TEST( RifVtkSurfaceImporterTest, ImportFromFile )
|
||||
[expectedProperty]( const QString& name ) { return name == expectedProperty; } ) );
|
||||
EXPECT_EQ( triangleMeshData->propertyValues( expectedProperty ).size(), expectedVertexCount );
|
||||
}
|
||||
|
||||
// Check that we handled NaN values
|
||||
auto values = triangleMeshData->propertyValues( "ReservoirPerm" );
|
||||
for ( size_t i = 24; i < 30; i++ )
|
||||
{
|
||||
ASSERT_TRUE( std::isnan( triangleMeshData->propertyValues( "ReservoirPerm" )[i] ) );
|
||||
}
|
||||
}
|
||||
|
||||
// Test parsing a PVD file
|
||||
|
||||
Reference in new issue
Block a user