diff --git a/src/VTK.jl b/src/VTK.jl index 10d575da59..98bbe1965e 100644 --- a/src/VTK.jl +++ b/src/VTK.jl @@ -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]'; @@ -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 diff --git a/src/quadrature.jl b/src/quadrature.jl index 39067475bd..029110515a 100644 --- a/src/quadrature.jl +++ b/src/quadrature.jl @@ -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} @@ -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