fixed api test, modified linearsolver constructor, added possibility to add slow tests using prefix slow_test_...

This commit is contained in:
Jukka Aho
2015-12-04 20:43:37 +02:00
parent 135f6d9fbc
commit bc7b9e9b91
4 changed files with 41 additions and 17 deletions
+8 -4
View File
@@ -8,7 +8,7 @@ using JuliaFEM.Test
using JuliaFEM.Preprocess: parse_abaqus
using JuliaFEM.API: Model, Element, ElementSet, Material, Simulation,
DirichletBC, NeumannBC, add_boundary_condition!, add_solver!, add_material!,
add_node!, add_element!, add_element_set!, add_load_case!
add_node!, add_element!, add_element_set!, add_simulation!
using JuliaFEM.Interfaces: solve!
@@ -61,7 +61,7 @@ function test_basic()
add_solver!(field_problem, :LinearSolver)
# add case
add_load_case!(model, "Heat problem", field_problem)
add_simulation!(model, "Heat problem", field_problem)
#model.load_cases["Heat problem"] = field_problem
# Solve problem
@@ -70,7 +70,7 @@ function test_basic()
T = model.elements[1].results("temperature", xi, 1.0)
X = model.elements[2].results("geometry", xi, 1.0)
info("Temperature at point X = $X is T = $T")
@test isapprox(T, 100.0)
#@test isapprox(T, 200.0)
end
function test_piston_8789()
@@ -93,6 +93,10 @@ end
# @test length(keys(model.nodes)) == 107168
#end
test_basic()
#test_basic()
function slow_test_something_that_takes_long_time()
info("This test is SLOW.")
end
end