#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:
Kristian Bendiksen
2020-12-07 13:03:46 +01:00
committed by Magne Sjaastad
parent 050899d90e
commit c61329bf9a
5 changed files with 86 additions and 11 deletions

View File

@@ -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];
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------