ExtendableGrids.jl icon indicating copy to clipboard operation
ExtendableGrids.jl copied to clipboard

More typestable & Julian API

Open j-fu opened this issue 1 year ago • 0 comments

Currently, we access data using grid[T] where T is a type. However, this is occasionaly leads to tpype instabilities. By defining

    (::Type{T})(grid::ExtendableGrid) where T<:AbstractExtendableGridApexType= grid[T]

we can write both grid[Coordinates] and Coordinates(grid). And we could specialize wrt. return types.

j-fu avatar Oct 16 '24 21:10 j-fu