Mercurial > repos > public > sbplib_julia
changeset 1962:496b8d3903c6 feature/sbp_operators/laplace_curvilinear
Merge feature/grids/geometry_functions
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 11 Feb 2025 09:03:04 +0100 |
parents | 627d94d0f333 (current diff) f46b4f1fa82c (diff) |
children | 524a52f190d7 |
files | src/Grids/Grids.jl |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Grids/parameter_space.jl Mon Feb 10 15:38:38 2025 +0100 +++ b/src/Grids/parameter_space.jl Tue Feb 11 09:03:04 2025 +0100 @@ -106,21 +106,21 @@ """ unitsquare(T=Float64) -The square starting at ``(0,0)`` with side length 1. +The square limited by 0 and 1 in each dimension. """ unitsquare(T=Float64) = unithyperbox(T,2) """ unitcube(T=Float64) -The cube starting at ``(0,0,0)`` with side length 1. +The cube limited by 0 and 1 in each dimension. """ unitcube(T=Float64) = unithyperbox(T,3) """ unithyperbox(T=Float64, D) -The hypercube in dimension `D` starting at ``(0,0,0,...)`` with side length 1. +The hypercube limited by 0 and 1 in each dimension. """ unithyperbox(T, D) = HyperBox((@SVector zeros(T,D)), (@SVector ones(T,D))) unithyperbox(D) = unithyperbox(Float64,D) @@ -141,7 +141,7 @@ """ Simplex(verticies...) -A simplex with the given vierticies. +A simplex with the given verticies. """ function Simplex(verticies::Vararg{AbstractArray}) ET = mapreduce(eltype,promote_type,verticies)