We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a problem here:
FourierFlows.jl/src/domains.jl
Lines 116 to 120 in 1028120
If somebody prescribes
Lx=2π
as Float64 and then calls gr=TwoDGrid(nx, Lx, T=Float32), the resulting grid has
Float64
gr=TwoDGrid(nx, Lx, T=Float32)
julia> typeof(gr.Lx) Float64
while, e.g,
julia> typeof(gr.x) Array{Float32,2}
I feel that the solution is to make sure Lx is typed correctly by adding
Lx
Lx = T(Lx) Ly = T(Ly)
in the beginning of TwoDGrid function.
TwoDGrid
(Similarly in OneDGrid...)
OneDGrid
The text was updated successfully, but these errors were encountered:
glwagner
Successfully merging a pull request may close this issue.
There is a problem here:
FourierFlows.jl/src/domains.jl
Lines 116 to 120 in 1028120
If somebody prescribes
as
Float64
and then callsgr=TwoDGrid(nx, Lx, T=Float32)
, the resulting grid haswhile, e.g,
I feel that the solution is to make sure
Lx
is typed correctly by addingin the beginning of
TwoDGrid
function.(Similarly in
OneDGrid
...)The text was updated successfully, but these errors were encountered: