Skip to content

Commit

Permalink
Merge pull request #4764 from clairekope/enzo-testing-bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Dec 21, 2023
2 parents e8d92ae + 78abdfb commit 42eb142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/frontends/enzo/answer_testing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __call__(self):
field = ad[k].d
for xmin, xmax in zip(self.left_edges, self.right_edges):
mask = (position >= xmin) * (position <= xmax)
exact_field = np.interp(position[mask], exact["pos"], exact[k])
exact_field = np.interp(position[mask].ndview, exact["pos"], exact[k])
myname = f"ShockTubeTest_{k}"
# yield test vs analytical solution
yield AssertWrapper(
Expand Down

0 comments on commit 42eb142

Please sign in to comment.