diff --git a/examples/straight-stellarator-curvilinear.py b/examples/straight-stellarator-curvilinear.py index 68a9019..d322cea 100755 --- a/examples/straight-stellarator-curvilinear.py +++ b/examples/straight-stellarator-curvilinear.py @@ -35,8 +35,8 @@ inner_lines = [] for i in range(nslices): - r = rzcoord[:, i, 0] - z = rzcoord[:, i, 1] + r = rzcoord[:, i, 0, 0] + z = rzcoord[:, i, 0, 1] line = zoidberg.rzline.line_from_points(r, z) # Re-map the points so they're approximately uniform in distance along the surface # Note that this results in some motion of the line @@ -76,7 +76,7 @@ print("Writing to grid file '{0}'".format(filename)) zoidberg.write_maps( - grid, magnetic_field, maps, gridfile=filename, new_names=False, metric2d=True + grid, magnetic_field, maps, gridfile=filename, new_names=False, metric2d=False ) #############################################################################