Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Workaround failure of test Tools/MacMesh/PressureValve.py
[modules/smesh.git]
/
src
/
Tools
/
MacMesh
/
MacMesh
/
MacObject.py
diff --git
a/src/Tools/MacMesh/MacMesh/MacObject.py
b/src/Tools/MacMesh/MacMesh/MacObject.py
index 162c7d5b7bd4e51681604865c8b0c215dc4b3110..becca33dc6128cb1d5acce99c35be2f18191788d 100644
(file)
--- a/
src/Tools/MacMesh/MacMesh/MacObject.py
+++ b/
src/Tools/MacMesh/MacMesh/MacObject.py
@@
-185,6
+185,8
@@
class MacObject:
self.DirectionalMeshParams = MeshPar
self.MeshPar[0] = GenFunctions.CompatibilityTest(self)
self.DirectionalMeshParams = MeshPar
self.MeshPar[0] = GenFunctions.CompatibilityTest(self)
+ if isinstance( self.MeshPar[0], list ):
+ return # workaround, as CompatibilityTest() can return a list
if self.MeshPar[0] < 0 :
Alarms.Message(4)
if self.MeshPar[0] == -1 : print(("Problem encountered with object(s) no. "+str(ObjectsInvolved)))
if self.MeshPar[0] < 0 :
Alarms.Message(4)
if self.MeshPar[0] == -1 : print(("Problem encountered with object(s) no. "+str(ObjectsInvolved)))
@@
-241,7
+243,7
@@
class MacObject:
import GenFunctions, Config
from salome.geom import geomBuilder
import GenFunctions, Config
from salome.geom import geomBuilder
- geompy = geomBuilder.New(
Config.theStudy
)
+ geompy = geomBuilder.New()
if isinstance(Criterion, str) :
Crit = {'South' : lambda : 0,
if isinstance(Criterion, str) :
Crit = {'South' : lambda : 0,