From 036acaf36a39161aa897ff904ae386fd5553e035 Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 15 Feb 2012 14:12:20 +0000 Subject: [PATCH] Added method GetHypType() --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 2 +- src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index 933363c..c14eef8 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -140,7 +140,7 @@ GHS3DPlugin_GHS3D::GHS3DPlugin_GHS3D(int hypId, int studyId, SMESH_Gen* gen) _onlyUnaryInput = false; // Compute() will be called on a compound of solids _iShape=0; _nbShape=0; - _compatibleHypothesis.push_back("GHS3D_Parameters"); + _compatibleHypothesis.push_back( GHS3DPlugin_Hypothesis::GetHypType()); _compatibleHypothesis.push_back( StdMeshers_ViscousLayers::GetHypType() ); _requireShape = false; // can work without shape_studyId diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx index 43cc1f6..0a85c66 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx @@ -112,7 +112,8 @@ public: typedef std::map TIDSortedElemGroupMap; typedef std::map TIDSortedNodeGroupMap; typedef std::set TSetStrings; - + + static const char* GetHypType() { return "GHS3D_Parameters"; } /*! * To mesh "holes" in a solid or not. Default is to mesh. */ -- 2.39.2