-
Notifications
You must be signed in to change notification settings - Fork 33
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
Used center of f_1 as an additional storage and also fixed some bugs #99
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,8 +91,8 @@ def bc_profile(self): | |
@wp.func | ||
def bc_profile_warp(index: wp.vec3i): | ||
# Poiseuille flow profile: parabolic velocity distribution | ||
y = self.precision_policy.store_precision.wp_dtype(index[1]) | ||
z = self.precision_policy.store_precision.wp_dtype(index[2]) | ||
y = wp.float32(index[1]) | ||
z = wp.float32(index[2]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revering it back will cause lots of issues if you run this example with f64/f64. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm pls create an issue if it is a bug |
||
|
||
# Calculate normalized distance from center | ||
y_center = y - (H_y / 2.0) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this back to compute type instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revering it back will cause lots of issues if you run this example with f64/f64.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm pls create an issue if it is a bug.