feat(pythonInterface/mfem): added loads of mfem bindings to make interacting through python easy

This commit is contained in:
2025-06-16 12:01:03 -04:00
parent 94a0fa947a
commit 79c585892f
24 changed files with 1467 additions and 55 deletions

View File

@@ -0,0 +1,11 @@
from serif.mfem import Mesh
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Test loading a mesh using MFEM's mesh loading called from Python")
parser.add_argument("path", type=str, help="path to mesh")
args = parser.parse_args()
mesh = Mesh(args.path)
print(mesh.nv)