Skip to content

Instantly share code, notes, and snippets.

@natschil
Created October 12, 2018 12:17
Show Gist options
  • Save natschil/bcbebc027c5d4de154173b9657deda66 to your computer and use it in GitHub Desktop.
Save natschil/bcbebc027c5d4de154173b9657deda66 to your computer and use it in GitHub Desktop.
function locatePoint(ctx::gridContext{dim}, x::Vec{dim,T}) where {dim,T}
return locatePoint(ctx.loc, ctx.grid, x) #This call causes problems, replacing it by something else fixes things.
end
...
struct regular2DGridLocator{C} <: cellLocator where {M,N,C <: JuAFEM.Cell{2,M,N}}
nx::Int
ny::Int
LL::Tensors.Vec{2,Float64}
UR::Tensors.Vec{2,Float64}
end
function locatePoint(
loc::regular2DGridLocator{S},
grid::JuAFEM.Grid,
x::Tensors.Vec{2,T}
)::Tuple{Tensors.Vec{2,T}, Vector{Int}} where {S,T}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment