mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 02:00:34 +05:00
Fix up PressureValve test
This commit is contained in:
parent
9133087aaa
commit
088e26c781
@ -69,7 +69,7 @@ class MacObject:
|
|||||||
self.MeshGroups = []
|
self.MeshGroups = []
|
||||||
self.CheckInterfaces()
|
self.CheckInterfaces()
|
||||||
if 'auto' in MeshParameters : self.AutoParam()
|
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 :
|
else :
|
||||||
Config.ListObj.append(self)
|
Config.ListObj.append(self)
|
||||||
print("Aborting object creation\n ")
|
print("Aborting object creation\n ")
|
||||||
@ -186,7 +186,7 @@ class MacObject:
|
|||||||
self.MeshPar[0] = GenFunctions.CompatibilityTest(self)
|
self.MeshPar[0] = GenFunctions.CompatibilityTest(self)
|
||||||
|
|
||||||
if isinstance( self.MeshPar[0], list ):
|
if isinstance( self.MeshPar[0], list ):
|
||||||
return # workaround, as CompatibilityTest() can return a list
|
return # OK
|
||||||
if self.MeshPar[0] < 0 :
|
if self.MeshPar[0] < 0 :
|
||||||
Alarms.Message(4)
|
Alarms.Message(4)
|
||||||
if self.MeshPar[0] == -1 : print(("Problem encountered with object(s) no. "+str(ObjectsInvolved)))
|
if self.MeshPar[0] == -1 : print(("Problem encountered with object(s) no. "+str(ObjectsInvolved)))
|
||||||
|
Loading…
Reference in New Issue
Block a user