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

Fix NaN occuring in simulations. #3

Closed
wants to merge 4 commits into from

Conversation

kruland2607
Copy link
Contributor

Fix NaN occurring in computation of CGx and CGy of fin sets due to botched test for 0 denominators.



@Test
public void testCGComputation() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please split these up into separate test cases. There's no reason to have then in one method, as they're clearly separate. E.g. testCGTriangularFin, testCGRectangularFin etc. The test case name should also explain what the test contains, it's hard to deduce from the numbers themselves.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed - will do.

On 10/6/2012 9:15 AM, plaa wrote:

In core/test/net/sf/openrocket/rocketcomponent/FinSetTest.java:

import net.sf.openrocket.util.LineStyle;
import net.sf.openrocket.util.BaseTestCase.BaseTestCase;

import org.junit.Test;

public class FinSetTest extends BaseTestCase {

  • @test
  • public void testCGComputation() throws Exception {

Please split these up into separate test cases. There's no reason to
have then in one method, as they're clearly separate. E.g.
testCGTriangularFin, testCGRectangularFin etc. The test case name
should also explain what the test contains, it's hard to deduce from
the numbers themselves.


Reply to this email directly or view it on GitHub
https://github.com/plaa/openrocket/pull/3/files#r1779419.

@kruland2607 kruland2607 closed this Oct 7, 2012
teyrana referenced this pull request in teyrana/openrocket Feb 17, 2016
Fixed Simulation Id loading (and other bugfixes).
wcravens pushed a commit that referenced this pull request Sep 28, 2017
[fix] fixed deprecated method reflection references.
teyrana pushed a commit that referenced this pull request Mar 4, 2020
[fix] Restores 3d Views to PR #556 -- Java 11 upgrade
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.

None yet

2 participants