-
Notifications
You must be signed in to change notification settings - Fork 233
Small improvements to PerturbationAdvectionOpenBoundaryCondition
interface
#4394
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
base: main
Are you sure you want to change the base?
Conversation
src/BoundaryConditions/perturbation_advection_open_boundary_matching_scheme.jl
Outdated
Show resolved
Hide resolved
@@ -114,7 +114,7 @@ end | |||
|
|||
τ̃ = Δt / τ | |||
|
|||
u₁ⁿ⁺¹ = (uᵢⁿ - U * uᵢ₋₁ⁿ⁺¹ + ūⁿ⁺¹ * τ̃) / (1 + τ̃ - U) | |||
u₁ⁿ⁺¹ = isinf(τ̃) ? ūⁿ⁺¹ : (uᵢⁿ - U * uᵢ₋₁ⁿ⁺¹ + ūⁿ⁺¹ * τ̃) / (1 + τ̃ - U) |
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.
can you organize this code into "paragraphs" (we don't want to use double space code I feel)
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.
Is this what you're suggesting?
u₁ⁿ⁺¹ = isinf(τ̃) ? ūⁿ⁺¹ : (uᵢⁿ - U * uᵢ₋₁ⁿ⁺¹ + ūⁿ⁺¹ * τ̃) / (1 + τ̃ - U) | |
if isinf(τ̃) | |
u₁ⁿ⁺¹ = ūⁿ⁺¹ | |
else | |
u₁ⁿ⁺¹ = (uᵢⁿ - U * uᵢ₋₁ⁿ⁺¹ + ūⁿ⁺¹ * τ̃) / (1 + τ̃ - U) | |
end |
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.
no no I just mean removing some vertical white space
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.
Ah I see. Yeah I agree with you. I also find it harder to read. I'll improve that.
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.
Done. Can you check?
src/BoundaryConditions/perturbation_advection_open_boundary_matching_scheme.jl
Show resolved
Hide resolved
src/BoundaryConditions/perturbation_advection_open_boundary_matching_scheme.jl
Outdated
Show resolved
Hide resolved
@jagoosw can you please write a couple of sentences about |
No description provided.