FourierFlows / FourierFlows.jl

Tools for building fast, hackable, pseudospectral partial differential equation solvers on periodic domains
https://bit.ly/FourierFlows
MIT License
207 stars 29 forks source link

Add `gridpoints(::OneDGrid)` and tests #324

Closed jbisits closed 2 years ago

jbisits commented 2 years ago

This PR adds the gridpoints(::Dev, ::OneDGrid) method so that one can call x = gridpoints(x). This will make sure that the type of array is correct for the dev either CPU or GPU.

jbisits commented 2 years ago

@jbisits this seems good! please bump a patch release as well?

Great!

please bump a patch release as well? Can do

jbisits commented 2 years ago

Just need a re-review to check that I have correctly bumped the patch release..

jbisits commented 2 years ago

@navidcy I have not merged this as I do not have write access. I presume you know this and will write the release etc. but I just wanted to let you know in case you were wondering why I had not already merged this PR!