# -*- 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
import hexablock
import os
-import geompy
#---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
# ================================================================= save_schema
# ========================================================== test_hexa_quads_ab
def test_hexa_quads_ab () :
- doc = hexablock.addDocument()
+ doc = hexablock.addDocument ("default")
vtk = FileVtk (doc, "HexaQuadsAB");
grid = add_grid (doc, 1, 1, 3)
vtk.save ()
# ========================================================== test_hexa_quads_ac
def test_hexa_quads_ac () :
- doc = hexablock.addDocument()
+ doc = hexablock.addDocument ("default")
vtk = FileVtk (doc, "HexaQuadsAC");
grid = add_grid (doc, 2, 1, 2)
vtk.save ()
# ======================================================= test_hexa_quads_acd
def test_hexa_quads_acd () :
- doc = hexablock.addDocument()
+ doc = hexablock.addDocument ("default")
vtk = FileVtk (doc, "HexaQuadsACD");
grid = add_grid (doc, 3, 1, 2)
vtk.save ()
# ======================================================= test_hexa_quads_ace
def test_hexa_quads_ace () :
- doc = hexablock.addDocument()
+ doc = hexablock.addDocument ("default")
vtk = FileVtk (doc, "HexaQuadsACE");
grid = add_grid (doc, 2, 2, 2)
vtk.save ()
# ======================================================= test_hexa_quads_abcd
def test_hexa_quads_abcd () :
- doc = hexablock.addDocument()
+ doc = hexablock.addDocument ("default")
vtk = FileVtk (doc, "HexaQuadsABCD");
grid = add_grid (doc, 3, 1, 3)
vtk.save ()
# ======================================================= test_hexa_quads_abce
def test_hexa_quads_abce () :
- doc = hexablock.addDocument()
+ doc = hexablock.addDocument ("default")
vtk = FileVtk (doc, "HexaQuadsABCE");
grid = add_grid (doc, 3, 2, 2)
vtk.save ()