Cartesian Fields

ClimateMachine.CartesianFields.SpectralElementFieldType
SpectralElementField(domain::RectangularDomain, state::MPIStateArray, variable_index::Int)

Returns a Cartesian view into state.realdata[:, variable_index, :], assuming that state.realdata lives on RectangularDomain.

SpectralElementField.elements is a three-dimensional array of RectangularElements.

source
SpectralElementField(domain::RectangularDomain, grid, realdata::AbstractArray)

Returns a SpectralElementField whose elements provide a Cartesian view into realdata, assuming that realdata lives on domain::RectangularDomain.

source
ClimateMachine.CartesianFields.assembleFunction

Assemble an array along the first dimension.

source

Assemble an array along the second dimension.

source

Assemble an array along the third dimension.

source

Assemble elements along dimension.

source
assemble(elements::Array{<:RectangularElement, 3})

Assemble the three-dimensional data in elements into a single Array, averaging data on shared nodes.

source
assemble(u::SpectralElementField)

Assemble u.elements into a single element::eltype(u), averaging shared nodes.

source
assemble_data(u::SpectralElementField{<:CuArray})

Assemble the data in u.elements into a single Array, averaging shared nodes.

source