Salome HOME
Switch development flag to 1
[modules/hexablock.git] / src / TEST_PY / test_unit / test_cross.py
index 05b2e28cbd7422cb616b1371872236d7cf9c394e..5decffe03612daf9ff59c7f0b5681253fba5185d 100644 (file)
@@ -1,10 +1,10 @@
 # -*- coding: latin-1 -*-
-# Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+# Copyright (C) 2009-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,7 +22,6 @@
 
 import hexablock
 import os
-import geompy
 
 #---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
 
@@ -48,6 +47,7 @@ def test_pipes () :
     pipe2 = doc.addPipe   (ori2, vx, ni2, nr2, nl2)
     grid  = doc.makePipes (pipe1, pipe2)
 
+    doc.save    ("pipes")
     doc.saveVtk ("pipes.vtk")
     return doc
 
@@ -64,7 +64,7 @@ def test_croix () :
 
     nr1 = 2
     nl1 = 10
-    nr2 = 1
+    nr2 = 1.8
     nl2 = 10
 
     cyl1 = doc.addCylinder (ori1, vz, nr1, nl1)
@@ -77,7 +77,9 @@ def test_croix () :
 
 # ================================================================= Begin
 
-doc = test_pipes  ()
+## doc = test_pipes  ()
+doc = test_croix  ()
+## doc.setLevel (747)
 
 law = doc.addLaw("Uniform", 4)
 
@@ -85,5 +87,5 @@ for j in range(doc.countPropagation()):
     propa = doc.getPropagation(j)
     propa.setLaw(law) 
 
-mesh_hexas = hexablock.mesh(doc, "maillage:hexas")
+mesh_hexas = hexablock.mesh (doc, "maillage:hexas")