Skip to content

Commit

Permalink
Merge 51e6e47 into 5be44dd
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Jan 29, 2018
2 parents 5be44dd + 51e6e47 commit 0498f48
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/FEMBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ import Base: getindex, setindex!, convert, length, size, isapprox,
using TimerOutputs
export @timeit, print_timer

using Logging
Logging.configure(level=INFO)
if haskey(ENV, "JULIAFEM_LOGLEVEL")
Logging.configure(level=LogLevel(ENV["JULIAFEM_LOGLEVEL"]))
end
export info, debug

using FEMBasis
using FEMBasis: AbstractBasis, jacobian, get_reference_element_coordinates
import FEMBasis: interpolate
Expand Down
2 changes: 2 additions & 0 deletions src/assembly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ function assemble!(problem::Problem, time)
first_element = first(elements)
unknown_field_name = get_unknown_field_name(problem)
if !haskey(first_element, unknown_field_name)
#=
warn("Assembling elements for problem $(problem.name): seems that ",
"problem is uninitialized. To initialize problem, use ",
"`initialize!(problem, time)`.")
info("Initializing problem $(problem.name) at time $time automatically.")
=#
initialize!(problem, time)
end

Expand Down
1 change: 0 additions & 1 deletion src/problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ update!(body.properties, "finite_strain" => "false")
"""
function update!{P<:AbstractProblem}(problem::P, attr::Pair{String, String}...)
for (name, value) in attr
debug("$P: set $name to $value")
setfield!(problem, parse(name), parse(value))
end
end
Expand Down
1 change: 1 addition & 0 deletions test/REQUIRE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TimerOutputs
1 change: 0 additions & 1 deletion test/test_elements.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ end
el = Element(Seg2, [1, 2])
X = Dict(1 => [0.0, 0.0], 2 => [1.0, 0.0], 3 => [0.5, 0.5])
f = field(X)
debug("field = $f")
#update!(el, "geometry", X)
el["geometry"] = f
@test isapprox(el("geometry")[1], [0.0, 0.0])
Expand Down

0 comments on commit 0498f48

Please sign in to comment.