Exemplo n.º 1
0
 def __convert(self,
               fname,
               cell_type=DataHandler.CellType_Tetrahedron,
               dim=3):
     handler = _TestHandler(cell_type, dim, self)
     if not os.path.isabs(fname):
         fname = os.path.join(os.path.dirname(__file__), "data", fname)
     meshconvert.convert(fname, handler)
     return handler
Exemplo n.º 2
0
Arquivo: test.py Projeto: alogg/dolfin
 def __convert(self, fname, cell_type=DataHandler.CellType_Tetrahedron, dim=3):
     handler = _TestHandler(cell_type, dim, self)
     if not os.path.isabs(fname):
         fname = os.path.join("data", fname)
     meshconvert.convert(fname, handler)
     return handler
Exemplo n.º 3
0
 def __convert(self, fname):
     handler = _TestHandler(DataHandler.CellType_Tetrahedron, 3, self)
     if not os.path.isabs(fname):
         fname = os.path.join("data", fname)
     meshconvert.convert(fname, handler)
     return handler