Created
October 12, 2018 12:17
-
-
Save natschil/bcbebc027c5d4de154173b9657deda66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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