diff --git a/examples/subgrids/cylinder_fs.py b/examples/subgrids/cylinder_fs.py index 82d02b88..4800eb60 100644 --- a/examples/subgrids/cylinder_fs.py +++ b/examples/subgrids/cylinder_fs.py @@ -89,17 +89,10 @@ gv1 = gprMax.GeometryView(p1=(0, 0, 0), p2=(x, y, z), dl=(dl, dl, dl), scene.add(gv1) # Create some snapshots of entire domain -# for i in range(5): -# s = gprMax.Snapshot(p1=(0, 0, 0), p2=(x, y, z), dl=(dl, dl, dl), -# time=(i + 0.5) * 1e-9, -# filename=fn.with_suffix('').parts[-1] + '_' + str(i + 1)) -# scene.add(s) - for i in range(5): - s = gprMax.Snapshot(p1=sg1, p2=sg2, dl=(dl_sg, dl_sg, dl_sg), + s = gprMax.Snapshot(p1=(0, 0, 0), p2=(x, y, z), dl=(dl, dl, dl), time=(i + 0.5) * 1e-9, - filename=fn.with_suffix('').parts[-1] + '_' + str(i + 1), - outputs=['Ez']) - subgrid.add(s) + filename=fn.with_suffix('').parts[-1] + '_' + str(i + 1)) + scene.add(s) gprMax.run(scenes=[scene], n=1, geometry_only=False, outputfile=fn, subgrid=True, autotranslate=True)