SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
loadMesh.py
Go to the documentation of this file.
1from serif.mfem import Mesh
2import argparse
3
4if __name__ == "__main__":
5 parser = argparse.ArgumentParser(description="Test loading a mesh using MFEM's mesh loading called from Python")
6 parser.add_argument("path", type=str, help="path to mesh")
7
8 args = parser.parse_args()
9
10 mesh = Mesh(args.path)
11 print(mesh.nv)