-# Copyright (C) 2007-2016 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
##
# @package GHS3DPRLPluginBuilder
-# Python API for the MG-Tetra Parallel meshing plug-in module.
+# Python API for the MG-Tetra_HPC meshing plug-in module.
from salome.smesh.smesh_algorithm import Mesh_Algorithm
from salome.smesh.smeshBuilder import AssureGeomPublished
noGHS3DPRLPlugin = 1
pass
-# Optimization level of MG-Tetra Parallel
+# Optimization level of MG-Tetra_HPC
# V3.1
None_Optimization, Light_Optimization, Medium_Optimization, Strong_Optimization = 0,1,2,3
# V4.1 (partialy redefines V3.1). Issue 0020574
# Mesh algo type identifiers
#----------------------------
-## Algorithm type: MG-Tetra Parallel tetrahedron 3D algorithm, see GHS3DPRL_Algorithm
-MG_Tetra_Parallel = "MG-Tetra Parallel"
-GHS3DPRL = MG_Tetra_Parallel
+## Algorithm type: MG-Tetra_HPC tetrahedron 3D algorithm, see GHS3DPRL_Algorithm
+MG_Tetra_HPC = "MG-Tetra Parallel"
+MG_Tetra_Parallel = MG_Tetra_HPC
+GHS3DPRL = MG_Tetra_HPC
#----------------------------
# Algorithms
#----------------------------
-## Tetrahedron MG-Tetra Parallel 3D algorithm
+## Tetrahedron MG-Tetra_HPC 3D algorithm
#
-# It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.MG_Tetra_Parallel )
+# It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.MG_Tetra_HPC )
class GHS3DPRL_Algorithm(Mesh_Algorithm):
## name of the dynamic method in smeshBuilder.Mesh class
meshMethod = "Tetrahedron"
## type of algorithm used with helper function in smeshBuilder.Mesh class
# @internal
- algoType = MG_Tetra_Parallel
+ algoType = MG_Tetra_HPC
## doc string of the method in smeshBuilder.Mesh class
# @internal
docHelper = "Creates tetrahedron 3D algorithm for volumes"
# if it is @c 0 (default), the algorithm is assigned to the main shape
def __init__(self, mesh, geom=0):
Mesh_Algorithm.__init__(self)
- if noGHS3DPRLPlugin: print "Warning: GHS3DPRLPlugin module unavailable"
+ if noGHS3DPRLPlugin: print("Warning: GHS3DPRLPlugin module unavailable")
self.Create(mesh, geom, self.algoType, "libGHS3DPRLEngine.so")
self.params = None
pass