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")
|
||||
|
||||
@@ -42,10 +43,10 @@ cd(dirname(@__FILE__)) do
|
||||
for m in modules
|
||||
s = doctest(m)
|
||||
lnpassed, lnfailed, lnskipped = map(length, (passed(s), failed(s), skipped(s)))
|
||||
npassed += lnpassed
|
||||
nfailed += lnfailed
|
||||
nskipped += lnskipped
|
||||
npassed += lnpassed
|
||||
nfailed += lnfailed
|
||||
nskipped += lnskipped
|
||||
end
|
||||
println("""DOCTEST: {"failed": $nfailed, "skipped": $nskipped, "passed": $npassed}""")
|
||||
make_badge("doctests", npassed, (npassed+nfailed+nskipped), "badges/doctests-status.svg")
|
||||
end
|
||||
|
||||
|
||||
+10
-2
@@ -7,8 +7,16 @@ using Lexicon
|
||||
using Logging
|
||||
@Logging.configure(level=DEBUG)
|
||||
|
||||
"""
|
||||
Simple linspace extension to multidimensional values. Contribute to julialang?
|
||||
""" Simple linspace extension to arrays.
|
||||
|
||||
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)
|
||||
[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
|
||||
@Logging.configure(level=INFO)
|
||||
|
||||
VERSION < v"0.4-" && using Docile
|
||||
|
||||
# Below this line is internal functions related to solver. They can be used
|
||||
# directly if needed or using general interface combining data model and
|
||||
# solver.
|
||||
|
||||
@@ -6,8 +6,6 @@ module interfaces
|
||||
using Logging
|
||||
@Logging.configure(level=DEBUG)
|
||||
|
||||
VERSION < v"0.4-" && using Docile
|
||||
|
||||
#using JuliaFEM.elasticity_solver
|
||||
export solve_elasticity_interface!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user