[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined coordinates method #1071

Open
Yujie-W opened this issue Jan 6, 2023 · 0 comments
Open

Undefined coordinates method #1071

Yujie-W opened this issue Jan 6, 2023 · 0 comments

Comments

@Yujie-W
Copy link
Yujie-W commented Jan 6, 2023

coordinates(
topology::Topology2D{<:ClimaComms.SingletonCommsContext},
e::Int,
arg,
) = coordinates(topology.mesh, topology.elemorder[e], arg)

Error message

ERROR: MethodError: no method matching coordinates(::ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext{ClimaComms.CPU}, ClimaCore.Meshes.EquiangularCubedSphere{ClimaCore.Domains.SphereDomain{Float64}, ClimaCore.Meshes.NormalizedBilinearMap}, Vector{CartesianIndex{3}}, Array{Int64, 3}, NamedTuple{(), Tuple{}}}, ::Int64, ::Int64)
Closest candidates are:
  coordinates(::ClimaCore.Meshes.IntervalMesh, ::Integer, ::Integer) at ~/.julia/packages/ClimaCore/77fRh/src/Meshes/interval.jl:34
  coordinates(::ClimaCore.Meshes.AbstractMesh{2}, ::Any, ::Integer) at ~/.julia/packages/ClimaCore/77fRh/src/Meshes/common.jl:172
  coordinates(::ClimaCore.Topologies.Topology2D{ClimaComms.SingletonCommsContext}, ::Int64, ::Any) at ~/.julia/packages/ClimaCore/77fRh/src/Topologies/topology2d.jl:644

A tiny change like this helps in my case, but not sure if it would introduce more errors for other use cases

coordinates(topology::Topology2D, e::Int, arg) = coordinates(topology.mesh, topology.elemorder[e], arg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant