示例#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
示例#2
0
文件: test.py 项目: 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
示例#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