Salome HOME
PR: from Gerald Nicolas, 20 oct 2011
[modules/homard.git] / doc / files / tutorial_1.py
index f5a016962460f0894cdb4c823d0b2c1754a371b8..33d3ad90d52de72434417724b9049bbf2c869afa 100644 (file)
@@ -24,7 +24,7 @@
 Exemple de couplage HOMARD-Salome
 Copyright EDF-R&D 1996, 2010
 """
-__revision__ = "V1.1"
+__revision__ = "V1.2"
 #
 # ==================================
 # Repertoire a personnaliser
@@ -46,34 +46,34 @@ homard.SetCurrentStudy(salome.myStudy)
 Hypo_0 = homard.CreateHypothesis('Hypo_0')
 Hypo_0.SetAdapRefinUnRef(-1, 1, 0)
 #
-# Case "Case_0"
+# Case "Case_1"
 # =============
-Case_0 = homard.CreateCase('Case_0', 'MAILL', dircase+'/tutorial_1.00.med')
-Case_0.SetDirName(dircase)
-Case_0.SetConfType(1)
+Case_1 = homard.CreateCase('Case_1', 'MAILL', dircase+'/tutorial_1.00.med')
+Case_1.SetDirName(dircase)
+Case_1.SetConfType(1)
 #
 # Iterations
 # ==========
 # Iteration "Iter_0"
-Iter_0 = homard.CreateIteration('Iter_0', Case_0.GetIter0Name())
+Iter_0 = homard.CreateIteration('Iter_0', Case_1.GetIter0Name())
 Iter_0.SetMeshName('MESH')
 Iter_0.SetMeshFile(dircase+'/maill.01.med')
 homard.AssociateIterHypo('Iter_0', 'Hypo_0')
-codret = homard.Compute('Iter_0', 1)
+codret = Iter_0.Compute(1)
 
 # Iteration "Iter_1"
 Iter_1 = homard.CreateIteration('Iter_1', 'Iter_0')
 Iter_1.SetMeshName('MESH')
 Iter_1.SetMeshFile(dircase+'/maill.02.med')
 homard.AssociateIterHypo('Iter_1', 'Hypo_0')
-codret = homard.Compute('Iter_1', 1)
+codret = Iter_1.Compute(1)
 
 # Iteration "Iter_2"
 Iter_2 = homard.CreateIteration('Iter_2', 'Iter_1')
 Iter_2.SetMeshName('MESH')
 Iter_2.SetMeshFile(dircase+'/maill.03.med')
 homard.AssociateIterHypo('Iter_2', 'Hypo_0')
-codret = homard.Compute('Iter_2', 1)
+codret = Iter_2.Compute(1)
 
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser(1)