We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xref: #1989 (comment)
The text was updated successfully, but these errors were encountered:
I think that this is a reproducer:
import ClimaCore: Domains, Meshes, Geometry, Grids, Spaces, Topologies, Hypsography, Fields, Operators, Utilities import ClimaComms ENV["CLIMACOMMS_DEVICE"] = "CUDA" using CUDA # ENV["CLIMACOMMS_DEVICE"] = "CPU" comms_ctx = ClimaComms.SingletonCommsContext() h_domain = Domains.RectangleDomain( Domains.IntervalDomain(Geometry.XPoint(0.0), Geometry.XPoint(1.0); periodic = true), Domains.IntervalDomain(Geometry.YPoint(0.0), Geometry.YPoint(1.0); periodic = true) ) h_mesh = Meshes.RectilinearMesh(h_domain, 10, 10) h_grid = Spaces.grid(Spaces.SpectralElementSpace2D( Topologies.DistributedTopology2D(comms_ctx, h_mesh, Topologies.spacefillingcurve(h_mesh)), Spaces.Quadratures.GLL{4}(), )) z_domain = Domains.IntervalDomain(Geometry.ZPoint(0.0), Geometry.ZPoint(1.0); boundary_names = (:bottom, :top)) z_grid = Grids.FiniteDifferenceGrid(Topologies.IntervalTopology( comms_ctx, Meshes.IntervalMesh(z_domain, Meshes.Uniform(); nelems = 10) )) grid = Grids.ExtrudedFiniteDifferenceGrid(h_grid, z_grid, Hypsography.Flat(); deep = false) center_space = Spaces.CenterExtrudedFiniteDifferenceSpace(grid) face_space = Spaces.FaceExtrudedFiniteDifferenceSpace(grid) # Create fields and show that it fails ᶜgradᵥ = Operators.GradientF2C() level_field = Fields.level(Fields.Field(Float64, center_space), 1) ᶠscalar_field = Fields.Field(Float64, face_space) # Should error (we cannot add center and face spaces!): @. ᶜgradᵥ(level_field + ᶠscalar_field)
Sorry, something went wrong.
No branches or pull requests
xref: #1989 (comment)
The text was updated successfully, but these errors were encountered: