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

Fixed distribute and post processing bugs #54

Merged

Conversation

mehdiataei
Copy link
Contributor

No description provided.

Copy link
Contributor

@hsalehipour hsalehipour left a comment

Choose a reason for hiding this comment

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

Pease see my comments.

@@ -1,3 +1,4 @@
from math import e
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this

Comment on lines +116 to +117
distributed_op = distribute_operator(
operator, grid, velocity_set, num_results=num_results, ops=ops
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this to be the defaul results outside of the if statement and deleve else of the inner if statement.

Copy link
Contributor Author

@mehdiataei mehdiataei Aug 2, 2024

Choose a reason for hiding this comment

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

there is no need to spend time compiling a stepper that we won't need in the future. It's already the default behavior.

f_post_collision = self.collision.warp_functional(f_post_stream, feq, rho, u)
f_post_collision = self.collision.warp_functional(
f_post_stream, feq, rho, u
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't use the formatter in your PRs where the focus is not the formatting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merge this. I am setting up ruff for the project. The reason of this change was the ruff was not respected in previous PRs.

@hsalehipour hsalehipour merged commit 0da352b into Autodesk:major-refactoring Aug 2, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants