mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7072 Warn when geological frk export produces NaN or inf.
This can happen when the elastic properties are not defined for the entire range of porosity in the grid.
This commit is contained in:
committed by
Magne Sjaastad
parent
050899d90e
commit
c61329bf9a
@@ -64,6 +64,24 @@ const std::vector<double>& RigElasticProperties::porosity() const
|
||||
return m_porosity;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigElasticProperties::porosityMin() const
|
||||
{
|
||||
if ( m_porosity.empty() ) return 0.0;
|
||||
return m_porosity[0];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigElasticProperties::porosityMax() const
|
||||
{
|
||||
if ( m_porosity.empty() ) return 0.0;
|
||||
return m_porosity[m_porosity.size() - 1];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user