Skip to content
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

Newton grav 2d accuracy test #98

Merged
merged 11 commits into from
Jun 18, 2021
Merged

Newton grav 2d accuracy test #98

merged 11 commits into from
Jun 18, 2021

Conversation

Cagancancacan
Copy link
Collaborator

No description provided.

Copy link
Contributor

@S010MON S010MON left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please go through all of this and clean it up. Dead code, bad commenting practices, etc. This won't go into main until production ready!

}
}
}
//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this all commented out? Either it's good code, or it's got to go

//NASA drag formula
double dragFormula = dScale*vSq; //follow the NASA given formula to get the mathematical force applied by drag
//velo squared
// double vSq = stateInfo.velocity.get(j).dotProduct(stateInfo.velocity.get(j));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful? not? sort out the comments

State2d nextState = (State2d) solver.step(grav, time, state, stepSize);
if(DEBUG)
{
// System.out.println("Start State" + state.toString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're going to use/not use the debug variable, then do that, don't disable with comments

while (time < numberOfSteps) {

State2d nextState = (State2d) solver.step(grav, time, state, stepSize);
// actual = nextState.position.get(0); //get(0) is a placeholder value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?


Vector2d expected = new Vector2d();

// assertEquals(expected,actual,error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@S010MON S010MON merged commit ec03a58 into master Jun 18, 2021
@S010MON S010MON deleted the newton_grav_2d_accuracy_test branch June 18, 2021 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants