-
-
Notifications
You must be signed in to change notification settings - Fork 359
Implementation Edit to Verlet Integration in Java #290
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
Implementation Edit to Verlet Integration in Java #290
Conversation
Wesley-Arrington
commented
Jul 22, 2018
- Updated the code to use the new standard (Improving implementations for Verlet Integration #257)
- Put code in a class so that it can be run as is
- Made compliant with #257 - put in class so it can be run without additional code - removed comments before some functions which say the name of the function
How about renaming verlet.java to Verlet.java while you're at it? That way one can actually run it as-is. |
Nice catch, just made that change. |
return time; | ||
} | ||
|
||
static double[] stormer_verlet(double pos, double acc, double dt) { |
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.
I would argue that returning a named class here would be much more elegant
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.
I appreciate the suggestion and I agree. I just made a commit to return a class instead of double[]
- Created VerletValues Class - Changed where double[] was returned to VerletValues - Updated .md with new code cutoffs
Hi, I just wanted to check in on the state of this PR :) Are there any changes I should make? |
Hmm, apparently the PR is approved, but not merged. Is there a reason for that @Gustorn ? |
I've checked it and it looks fine. |