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

Refactor the geopotential computations to make them simpler and faster #1941

Merged
merged 10 commits into from
Sep 23, 2018

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented Sep 17, 2018

No description provided.

r_norm = Sqrt(r²);

λ = SIUnit<Angle>() * std::atan2(y / SIUnit<Length>(),
x / SIUnit<Length>());
Copy link
Member

Choose a reason for hiding this comment

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

Use ArcTan, that way we don't need the SIUnit spam.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

double const cos_mλ = Cos(mλ);
double const 𝔏 = Cnm * cos_mλ + Snm * sin_mλ;

Vector<Inverse<Length>, Frame> 𝔅_times_grad_𝔏;
Copy link
Member

Choose a reason for hiding this comment

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

Just call it 𝔅_grad_𝔏.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@pleroy
Copy link
Member Author

pleroy commented Sep 23, 2018

Retest this please

1 similar comment
@pleroy
Copy link
Member Author

pleroy commented Sep 23, 2018

Retest this please

@eggrobin eggrobin added the LGTM label Sep 23, 2018
@pleroy pleroy merged commit a8b86d2 into mockingbirdnest:master Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants