mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-08-06 04:21:33 +00:00
removed dependency for docile, doctests are now done using juliadoc
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using Docile, Lexicon, JuliaFEM
|
using JuliaFEM
|
||||||
|
using Lexicon
|
||||||
|
|
||||||
include("badges.jl")
|
include("badges.jl")
|
||||||
|
|
||||||
@@ -42,10 +43,10 @@ cd(dirname(@__FILE__)) do
|
|||||||
for m in modules
|
for m in modules
|
||||||
s = doctest(m)
|
s = doctest(m)
|
||||||
lnpassed, lnfailed, lnskipped = map(length, (passed(s), failed(s), skipped(s)))
|
lnpassed, lnfailed, lnskipped = map(length, (passed(s), failed(s), skipped(s)))
|
||||||
npassed += lnpassed
|
npassed += lnpassed
|
||||||
nfailed += lnfailed
|
nfailed += lnfailed
|
||||||
nskipped += lnskipped
|
nskipped += lnskipped
|
||||||
end
|
end
|
||||||
|
println("""DOCTEST: {"failed": $nfailed, "skipped": $nskipped, "passed": $npassed}""")
|
||||||
make_badge("doctests", npassed, (npassed+nfailed+nskipped), "badges/doctests-status.svg")
|
make_badge("doctests", npassed, (npassed+nfailed+nskipped), "badges/doctests-status.svg")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+10
-2
@@ -7,8 +7,16 @@ using Lexicon
|
|||||||
using Logging
|
using Logging
|
||||||
@Logging.configure(level=DEBUG)
|
@Logging.configure(level=DEBUG)
|
||||||
|
|
||||||
"""
|
""" Simple linspace extension to arrays.
|
||||||
Simple linspace extension to multidimensional values. Contribute to julialang?
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
>>> linspace([0.0], [1.0], 3)
|
||||||
|
3-element Array{Array{Float64,1},1}:
|
||||||
|
[0.0]
|
||||||
|
[0.5]
|
||||||
|
[1.0]
|
||||||
|
|
||||||
"""
|
"""
|
||||||
function Base.linspace(X1, X2, n)
|
function Base.linspace(X1, X2, n)
|
||||||
[1/2*(1-ti)*X1 + 1/2*(1+ti)*X2 for ti in linspace(-1, 1, n)]
|
[1/2*(1-ti)*X1 + 1/2*(1+ti)*X2 for ti in linspace(-1, 1, n)]
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ using ForwardDiff
|
|||||||
using Logging
|
using Logging
|
||||||
@Logging.configure(level=INFO)
|
@Logging.configure(level=INFO)
|
||||||
|
|
||||||
VERSION < v"0.4-" && using Docile
|
|
||||||
|
|
||||||
# Below this line is internal functions related to solver. They can be used
|
# Below this line is internal functions related to solver. They can be used
|
||||||
# directly if needed or using general interface combining data model and
|
# directly if needed or using general interface combining data model and
|
||||||
# solver.
|
# solver.
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ module interfaces
|
|||||||
using Logging
|
using Logging
|
||||||
@Logging.configure(level=DEBUG)
|
@Logging.configure(level=DEBUG)
|
||||||
|
|
||||||
VERSION < v"0.4-" && using Docile
|
|
||||||
|
|
||||||
#using JuliaFEM.elasticity_solver
|
#using JuliaFEM.elasticity_solver
|
||||||
export solve_elasticity_interface!
|
export solve_elasticity_interface!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user