mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #8402 from OPM/8401-flow-vector-result
#8401 Flow Vector Result: Handle empty results for first time step Use OpenMP for vector calculations Janitor: Use field of double instead of float to avoid rounding errors. If float is used in field, the current editor is has rounding effects that makes the text representation of 0.1 turn into 0.09999999....
This commit is contained in:
@@ -94,13 +94,13 @@ RimElementVectorResult::RimElementVectorResult()
|
||||
CAF_PDM_InitField( &m_showVectorJ, "ShowVectorJ", true, "J" );
|
||||
CAF_PDM_InitField( &m_showVectorK, "ShowVectorK", true, "K" );
|
||||
CAF_PDM_InitField( &m_showNncData, "ShowNncData", true, "Show NNC Data" );
|
||||
CAF_PDM_InitField( &m_threshold, "Threshold", 0.0f, "Threshold" );
|
||||
CAF_PDM_InitField( &m_threshold, "Threshold", 0.0, "Threshold" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_vectorColor, "VectorColor", "Color" );
|
||||
cvf::Color3f defaultUniformColor = cvf::Color3f::BLACK;
|
||||
CAF_PDM_InitField( &m_uniformVectorColor, "UniformVectorColor", defaultUniformColor, "Uniform Vector Color" );
|
||||
|
||||
CAF_PDM_InitField( &m_sizeScale, "SizeScale", 1.0f, "Size Scale" );
|
||||
CAF_PDM_InitField( &m_sizeScale, "SizeScale", 1.0, "Size Scale" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -206,7 +206,7 @@ RimElementVectorResult::VectorSurfaceCrossingLocation RimElementVectorResult::ve
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
float RimElementVectorResult::threshold() const
|
||||
double RimElementVectorResult::threshold() const
|
||||
{
|
||||
return m_threshold();
|
||||
}
|
||||
@@ -214,7 +214,7 @@ float RimElementVectorResult::threshold() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
float RimElementVectorResult::sizeScale() const
|
||||
double RimElementVectorResult::sizeScale() const
|
||||
{
|
||||
return m_sizeScale();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user