mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05: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:
1 parent
18e9ef0558
commit
7494302275
20 files changed
+613
-188
No files matched your search
@@ -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