-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Update to fields used in Enzo answer testing #3998
ENH: Update to fields used in Enzo answer testing #3998
Conversation
@@ -122,8 +121,8 @@ def get_analytical_solution(self): | |||
pos, dens, vel, pres, inte = np.loadtxt(self.solution_file, unpack=True) | |||
exact = {} | |||
exact["pos"] = pos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jwise77 should this key be updated too or is there a reason not to ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be updated. This key is only used for interpolation purposes in the answer testing and not directly compared to the field data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough !
PR Summary
This PR updates the field names to be tuples in the answer testing of the Enzo frontend. The
hubble_constant
parameter is also not necessarily always written as a float (i.e. 1), so it is read as an int, which causes problems in unyt downstream. Forcing it to be float at initialization.