Salome HOME
Copyright update 2022
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / GHS3DPRLPlugin_i.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 026c483..683f58e
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -54,12 +54,13 @@ extern "C"
     GenericHypothesisCreator_i* aCreator = 0;
 
     // Algorithms
-    if (strcmp(aHypName, "GHS3DPRL_3D") == 0)
+    if (strcmp(aHypName, "GHS3DPRL_3D") == 0 ||
+       strcmp(aHypName, "MG-Tetra Parallel") == 0)
       aCreator = new GHS3DPRLPlugin_Creator_i<GHS3DPRLPlugin_GHS3DPRL_i>;
     // Hypotheses
-    else if (strcmp(aHypName, "GHS3DPRL_Parameters") == 0)
+    else if (strcmp(aHypName, "GHS3DPRL_Parameters") == 0 ||
+             strcmp(aHypName, "MG-Tetra Parallel Parameters") == 0)
       aCreator = new GHS3DPRLPlugin_Creator_i<GHS3DPRLPlugin_Hypothesis_i>;
-    else ;
 
     return aCreator;
   }