Skip to content

Commit

Permalink
add ScalarPlotData2D docstring (#1145)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Chan <[email protected]>
  • Loading branch information
jlchan and jlchan authored May 26, 2022
1 parent b6d801c commit 29f81e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/visualization/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ struct ScalarData{T}
data::T
end

"""
ScalarPlotData2D(u, semi::AbstractSemidiscretization; kwargs...)
Returns an `PlotData2DTriangulated` object which is used to visualize a single scalar field.
`u` should be an array whose entries correspond to values of the scalar field at nodal points.
"""
ScalarPlotData2D(u, semi::AbstractSemidiscretization; kwargs...) =
ScalarPlotData2D(u, mesh_equations_solver_cache(semi)...; kwargs...)

Expand Down

0 comments on commit 29f81e5

Please sign in to comment.