Skip to content

Commit

Permalink
Update docs for MPValue
Browse files Browse the repository at this point in the history
  • Loading branch information
KeitaNakamura committed Aug 5, 2024
1 parent 2755c8c commit 257d73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end
@. particles.m = ρ * particles.V
# Interpolation
mpvalues = [MPValue(Vec{2}, LinearBSpline()) for _ in 1:length(particles)]
mpvalues = [MPValue(LinearBSpline(), mesh) for _ in 1:length(particles)]
# Plot results by `Plots.@gif`
Δt = 0.001
Expand Down
6 changes: 1 addition & 5 deletions src/Interpolations/mpvalue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ julia> mesh = CartesianMesh(1.0, (0,5), (0,5)); # computational domain
julia> x = Vec(2.2, 3.4); # particle coordinate
julia> mp = MPValue(Vec{2}, QuadraticBSpline())
MPValue:
Interpolation: QuadraticBSpline()
Property names: w::Matrix{Float64}, ∇w::Matrix{Vec{2, Float64}}
Neighboring nodes: CartesianIndices((1:0, 1:0))
julia> mp = MPValue(QuadraticBSpline(), mesh);
julia> update!(mp, x, mesh) # update `mp` at position `x` in `mesh`
MPValue:
Expand Down

0 comments on commit 257d73b

Please sign in to comment.