mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2505 Fix command argument types
This commit is contained in:
parent
8b9b0b8787
commit
fab8f2d6a0
@ -34,8 +34,8 @@ CAF_PDM_SOURCE_INIT(RicfSetFractureContainment, "setFractureContainment");
|
|||||||
RicfSetFractureContainment::RicfSetFractureContainment()
|
RicfSetFractureContainment::RicfSetFractureContainment()
|
||||||
{
|
{
|
||||||
RICF_InitField(&m_id, "id", -1, "Id", "", "", "");
|
RICF_InitField(&m_id, "id", -1, "Id", "", "", "");
|
||||||
RICF_InitField(&m_topLayer, "topLayer", 1.0, "TopLayer", "", "", "");
|
RICF_InitField(&m_topLayer, "topLayer", -1, "TopLayer", "", "", "");
|
||||||
RICF_InitField(&m_baseLayer, "baseLayer", 1.0, "BaseLayer", "", "", "");
|
RICF_InitField(&m_baseLayer, "baseLayer", -1, "BaseLayer", "", "", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -43,9 +43,9 @@ RicfSetFractureContainment::RicfSetFractureContainment()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicfSetFractureContainment::execute()
|
void RicfSetFractureContainment::execute()
|
||||||
{
|
{
|
||||||
if (m_id < 0)
|
if (m_id < 0 || m_topLayer < 0 || m_baseLayer < 0)
|
||||||
{
|
{
|
||||||
RiaLogging::error("setFractureContainment: Fracture template id not specified");
|
RiaLogging::error("setFractureContainment: Required argument missing");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
caf::PdmField<int> m_id;
|
caf::PdmField<int> m_id;
|
||||||
caf::PdmField<double> m_topLayer;
|
caf::PdmField<int> m_topLayer;
|
||||||
caf::PdmField<double> m_baseLayer;
|
caf::PdmField<int> m_baseLayer;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user