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 (parent:
bd8239d
)
PR: comment debug print
author
prascle
<prascle>
Mon, 25 Feb 2013 10:43:20 +0000
(10:43 +0000)
committer
prascle
<prascle>
Mon, 25 Feb 2013 10:43:20 +0000
(10:43 +0000)
src/SMESH_SWIG/smesh.py
patch
|
blob
|
history
src/SMESH_SWIG/smeshBuilder.py
patch
|
blob
|
history
diff --git
a/src/SMESH_SWIG/smesh.py
b/src/SMESH_SWIG/smesh.py
index e51fe36f2d5325c4506f1bf3fe535734ad2f05dd..0c62821bb6a901f4ffd235e5e387e1c82c975b44 100644
(file)
--- a/
src/SMESH_SWIG/smesh.py
+++ b/
src/SMESH_SWIG/smesh.py
@@
-52,7
+52,7
@@
except:
from salome.smesh.smeshBuilder import Mesh, algoCreator
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
#
from salome.smesh.smeshBuilder import Mesh, algoCreator
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
#
- print "pluginName: ", pluginName
+
#
print "pluginName: ", pluginName
pluginBuilderName = pluginName + "Builder"
try:
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
pluginBuilderName = pluginName + "Builder"
try:
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
diff --git
a/src/SMESH_SWIG/smeshBuilder.py
b/src/SMESH_SWIG/smeshBuilder.py
index c655fdf51774da8d73f933c62b50a5d68d6572a2..9e31ea0e816d4d5cdd5b1927c5a442bcc485589c 100644
(file)
--- a/
src/SMESH_SWIG/smeshBuilder.py
+++ b/
src/SMESH_SWIG/smeshBuilder.py
@@
-309,7
+309,7
@@
class smeshBuilder(object, SMESH._objref_SMESH_Gen):
global engine
global smeshInst
global doLcc
global engine
global smeshInst
global doLcc
- print "__new__", engine, smeshInst, doLcc
+
#
print "__new__", engine, smeshInst, doLcc
if smeshInst is None:
# smesh engine is either retrieved from engine, or created
if smeshInst is None:
# smesh engine is either retrieved from engine, or created
@@
-324,17
+324,17
@@
class smeshBuilder(object, SMESH._objref_SMESH_Gen):
# FindOrLoadComponent called:
# 1. CORBA resolution of server
# 2. the __new__ method is called again
# FindOrLoadComponent called:
# 1. CORBA resolution of server
# 2. the __new__ method is called again
- print "smeshInst = lcc.FindOrLoadComponent ", engine, smeshInst, doLcc
+
#
print "smeshInst = lcc.FindOrLoadComponent ", engine, smeshInst, doLcc
smeshInst = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" )
else:
# FindOrLoadComponent not called
if smeshInst is None:
# smeshBuilder instance is created from lcc.FindOrLoadComponent
smeshInst = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" )
else:
# FindOrLoadComponent not called
if smeshInst is None:
# smeshBuilder instance is created from lcc.FindOrLoadComponent
- print "smeshInst = super(smeshBuilder,cls).__new__(cls) ", engine, smeshInst, doLcc
+
#
print "smeshInst = super(smeshBuilder,cls).__new__(cls) ", engine, smeshInst, doLcc
smeshInst = super(smeshBuilder,cls).__new__(cls)
else:
# smesh engine not created: existing engine found
smeshInst = super(smeshBuilder,cls).__new__(cls)
else:
# smesh engine not created: existing engine found
- print "existing ", engine, smeshInst, doLcc
+
#
print "existing ", engine, smeshInst, doLcc
pass
return smeshInst
pass
return smeshInst
@@
-342,7
+342,7
@@
class smeshBuilder(object, SMESH._objref_SMESH_Gen):
return smeshInst
def __init__(self):
return smeshInst
def __init__(self):
- print "__init__"
+
#
print "__init__"
SMESH._objref_SMESH_Gen.__init__(self)
## Dump component to the Python script
SMESH._objref_SMESH_Gen.__init__(self)
## Dump component to the Python script
@@
-363,7
+363,7
@@
class smeshBuilder(object, SMESH._objref_SMESH_Gen):
## Sets the current study and Geometry component
# @ingroup l1_auxiliary
def init_smesh(self,theStudy,geompyD = None):
## Sets the current study and Geometry component
# @ingroup l1_auxiliary
def init_smesh(self,theStudy,geompyD = None):
- print "init_smesh"
+
#
print "init_smesh"
self.SetCurrentStudy(theStudy,geompyD)
## Creates an empty Mesh. This mesh can have an underlying geometry.
self.SetCurrentStudy(theStudy,geompyD)
## Creates an empty Mesh. This mesh can have an underlying geometry.
@@
-1083,7
+1083,7
@@
class Mesh:
for attrName in dir(self):
attr = getattr( self, attrName )
if isinstance( attr, algoCreator ):
for attrName in dir(self):
attr = getattr( self, attrName )
if isinstance( attr, algoCreator ):
- print "algoCreator ", attrName
+
#
print "algoCreator ", attrName
setattr( self, attrName, attr.copy( self ))
## Initializes the Mesh object from an instance of SMESH_Mesh interface
setattr( self, attrName, attr.copy( self ))
## Initializes the Mesh object from an instance of SMESH_Mesh interface
@@
-4377,7
+4377,7
@@
class hypMethodWrapper:
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
#
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
#
- print "pluginName: ", pluginName
+
#
print "pluginName: ", pluginName
pluginBuilderName = pluginName + "Builder"
try:
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
pluginBuilderName = pluginName + "Builder"
try:
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
@@
-4386,15
+4386,15
@@
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
continue
exec( "from salome.%s import %s" % (pluginName, pluginBuilderName))
plugin = eval( pluginBuilderName )
continue
exec( "from salome.%s import %s" % (pluginName, pluginBuilderName))
plugin = eval( pluginBuilderName )
- print " plugin:" , str(plugin)
+
#
print " plugin:" , str(plugin)
# add methods creating algorithms to Mesh
for k in dir( plugin ):
if k[0] == '_': continue
algo = getattr( plugin, k )
# add methods creating algorithms to Mesh
for k in dir( plugin ):
if k[0] == '_': continue
algo = getattr( plugin, k )
- print " algo:", str(algo)
+
#
print " algo:", str(algo)
if type( algo ).__name__ == 'classobj' and hasattr( algo, "meshMethod" ):
if type( algo ).__name__ == 'classobj' and hasattr( algo, "meshMethod" ):
- print " meshMethod:" , str(algo.meshMethod)
+
#
print " meshMethod:" , str(algo.meshMethod)
if not hasattr( Mesh, algo.meshMethod ):
setattr( Mesh, algo.meshMethod, algoCreator() )
pass
if not hasattr( Mesh, algo.meshMethod ):
setattr( Mesh, algo.meshMethod, algoCreator() )
pass