respect input file format
@@ -13,7 +13,7 @@ def _main():
# read mesh data
points, cells, point_data, cell_data, field_data = \
- meshio.read(args.infile)
+ meshio.read(args.infile, file_format=args.input_format)
print('Number of points: %d' % len(points))
print('Elements:')
@@ -93,14 +93,16 @@ def _parse_options():
'--input-format', '-i',
type=str,
choices=meshio.input_filetypes,
- help='input file format '
+ help='input file format',
+ default=None
)
parser.add_argument(
'--output-format', '-o',
type=str,
choices=meshio.output_filetypes,
- help='output file format '
+ help='output file format',
+ default=None
)
parser.add_argument(
