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

Find_Nearest_Wall_Cell could benefit from Distance_Squared function #78

Open
Niceno opened this issue Nov 14, 2018 · 0 comments
Open

Find_Nearest_Wall_Cell could benefit from Distance_Squared function #78

Niceno opened this issue Nov 14, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@Niceno
Copy link
Collaborator

Niceno commented Nov 14, 2018

Subroutine Find_Nearest_Wall_Cell in module Turbulence relies on function Distance. That makes it rather slow, since calculation of distance involves taking a square root n*n times. I believe functionality would be the same if one used Distance_Squared function, which doesn't take square root and would thus be much faster.

@Niceno Niceno added the enhancement New feature or request label Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant