Closed navidcy closed 1 year ago
Really neat to put dev
into the grid
struct. Makes it neater to just pass grid
to a function like Vars
to create variables on the right device. When this is merged I can update PassiveTracerFlows
with this new structure.
This PR introduces
device
as a field of thegrid
. ThenEquation
,Vars
,Params
,Problem
, etc can infer the device from thegrid
.This is a breaking change. Main change is that now only
dev::Device
is a positional argument in grid constructors; all other args are keyword arguments.Closes #322.
Also, after #331 we don't load CUDA functionality conditionally so I moved contents of
CuFourierFlows.jl
next to where their CPU-equivalent methods are defined.