mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fault Reactivation updates (#10727)
* Generate reservoir element sets * Add support for materials * Add local coordinate system support for exported model
This commit is contained in:
@@ -345,3 +345,13 @@ QVariant RimParameterGroup::parameterValue( QString name ) const
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimParameterGroup::parameterDoubleValue( QString name, double defaultValue ) const
|
||||
{
|
||||
RimDoubleParameter* p = dynamic_cast<RimDoubleParameter*>( parameter( name ) );
|
||||
if ( p == nullptr ) return defaultValue;
|
||||
return p->value();
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ public:
|
||||
|
||||
RimGenericParameter* parameter( QString name ) const;
|
||||
QVariant parameterValue( QString name ) const;
|
||||
double parameterDoubleValue( QString name, double defaultValue ) const;
|
||||
|
||||
private:
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
|
||||
|
||||
Reference in New Issue
Block a user