Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9133087
)
Fix up PressureValve test
author
eap
<eap@opencascade.com>
Thu, 26 Jul 2018 12:23:53 +0000
(15:23 +0300)
committer
eap
<eap@opencascade.com>
Thu, 26 Jul 2018 12:23:53 +0000
(15:23 +0300)
src/Tools/MacMesh/MacMesh/MacObject.py
patch
|
blob
|
history
diff --git
a/src/Tools/MacMesh/MacMesh/MacObject.py
b/src/Tools/MacMesh/MacMesh/MacObject.py
index becca33dc6128cb1d5acce99c35be2f18191788d..e3a9c03fe9a2d78b90c3c29616032f98c00ffab1 100644
(file)
--- a/
src/Tools/MacMesh/MacMesh/MacObject.py
+++ b/
src/Tools/MacMesh/MacMesh/MacObject.py
@@
-69,7
+69,7
@@
class MacObject:
self.MeshGroups = []
self.CheckInterfaces()
if 'auto' in MeshParameters : self.AutoParam()
self.MeshGroups = []
self.CheckInterfaces()
if 'auto' in MeshParameters : self.AutoParam()
- if not(self.MeshPar[0]<0): self.Generate()
+ if
isinstance(self.MeshPar[0], list) or
not(self.MeshPar[0]<0): self.Generate()
else :
Config.ListObj.append(self)
print("Aborting object creation\n ")
else :
Config.ListObj.append(self)
print("Aborting object creation\n ")
@@
-186,7
+186,7
@@
class MacObject:
self.MeshPar[0] = GenFunctions.CompatibilityTest(self)
if isinstance( self.MeshPar[0], list ):
self.MeshPar[0] = GenFunctions.CompatibilityTest(self)
if isinstance( self.MeshPar[0], list ):
- return #
workaround, as CompatibilityTest() can return a list
+ return #
OK
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)))