Skip to content

Commit

Permalink
fix doctets
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Mar 9, 2017
1 parent b110e36 commit 7763a7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
9 changes: 2 additions & 7 deletions src/VTK.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ vtk_grid{dim,T}(filename::AbstractString, coords::Vector{Vec{dim,T}}, topology::
**Example:**
```jldoctest
julia> coords = [Vec{2}((0.0,0.0)), Vec{2}((1.0,0.0)), Vec{2}((1.5,1.5)), Vec{2}((0.0,1.0))]
4-element Array{Tensors.Tensor{1,2,Float64,2},1}:
[0.0,0.0]
[1.0,0.0]
[1.5,1.5]
[0.0,1.0]
julia> coords = [Vec{2}((0.0,0.0)), Vec{2}((1.0,0.0)), Vec{2}((1.5,1.5)), Vec{2}((0.0,1.0))];
julia> topology = [1 2 4; 2 3 4]';
Expand Down Expand Up @@ -81,7 +76,7 @@ julia> ip = Lagrange{2, RefCube, 1}()
JuAFEM.Lagrange{2,JuAFEM.RefCube,1}()
julia> getVTKtype(ip)
WriteVTK.VTKCellTypes.VTKCellType("VTK_QUAD",0x09,4)
WriteVTK.VTKCellTypes.VTKCellType("VTK_QUAD", 0x09, 4)
```
"""
getVTKtype(::Lagrange{1, RefCube, 1}) = VTKCellTypes.VTK_LINE
Expand Down
10 changes: 5 additions & 5 deletions src/quadrature.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ QuadratureRule{dim, shape}([quad_rule_type::Symbol], order::Int)
```jldoctest
julia> QuadratureRule{2, RefTetrahedron}(1)
JuAFEM.QuadratureRule{2,JuAFEM.RefTetrahedron,Float64}([0.5],Tensors.Tensor{1,2,Float64,2}[[0.333333,0.333333]])
JuAFEM.QuadratureRule{2,JuAFEM.RefTetrahedron,Float64}([0.5], Tensors.Tensor{1,2,Float64,2}[[0.333333, 0.333333]])
julia> QuadratureRule{1, RefCube}(:lobatto, 2)
JuAFEM.QuadratureRule{1,JuAFEM.RefCube,Float64}([1.0,1.0],Tensors.Tensor{1,1,Float64,1}[[-1.0],[1.0]])
JuAFEM.QuadratureRule{1,JuAFEM.RefCube,Float64}([1.0, 1.0], Tensors.Tensor{1,1,Float64,1}[[-1.0], [1.0]])
```
"""
immutable QuadratureRule{dim, shape, T}
Expand Down Expand Up @@ -92,9 +92,9 @@ julia> qr = QuadratureRule{2, RefTetrahedron}(:legendre, 2);
julia> getpoints(qr)
3-element Array{Tensors.Tensor{1,2,Float64,2},1}:
[0.166667,0.166667]
[0.166667,0.666667]
[0.666667,0.166667]
[0.166667, 0.166667]
[0.166667, 0.666667]
[0.666667, 0.166667]
```
"""
getpoints(qr::QuadratureRule) = qr.points
Expand Down

0 comments on commit 7763a7b

Please sign in to comment.