diff --git a/benchmark/SimulationsBenchmarks/ViscoElasticSimulationBenchmark.jl b/benchmark/SimulationsBenchmarks/ViscoElasticSimulationBenchmark.jl index 5bed0d9..d9287b5 100644 --- a/benchmark/SimulationsBenchmarks/ViscoElasticSimulationBenchmark.jl +++ b/benchmark/SimulationsBenchmarks/ViscoElasticSimulationBenchmark.jl @@ -2,4 +2,4 @@ filename = projdir("test/data/ViscoElasticSimulation.jl") include(filename) -SUITE["Simulations"]["ViscoElastic"] = @benchmarkable visco_elastic_simulation(writevtk=false, verbose=false) +SUITE["Simulations"]["ViscoElastic"] = @benchmarkable visco_elastic_simulation(t_end=2, writevtk=false, verbose=false) diff --git a/test/SimulationsTests/ViscoElasticSimulationTest.jl b/test/SimulationsTests/ViscoElasticSimulationTest.jl index f75d321..983e4e4 100644 --- a/test/SimulationsTests/ViscoElasticSimulationTest.jl +++ b/test/SimulationsTests/ViscoElasticSimulationTest.jl @@ -2,6 +2,6 @@ filename = projdir("test/data/ViscoElasticSimulation.jl") include(filename) -λx, σΓ = visco_elastic_simulation(t_end=5, writevtk=false, verbose=false) +λx, σΓ = visco_elastic_simulation(t_end=2, writevtk=false, verbose=false) -@test σΓ[end] ≈ 152821.386 +@test σΓ[end] ≈ 80903.472 diff --git a/test/data/ViscoElasticSimulation.jl b/test/data/ViscoElasticSimulation.jl index a5ba220..4c6aba2 100644 --- a/test/data/ViscoElasticSimulation.jl +++ b/test/data/ViscoElasticSimulation.jl @@ -40,7 +40,7 @@ function visco_elastic_simulation(;t_end=15, writevtk=true, verbose=true) [true, true, true], [true, false, true], [true, false, false], [true, false, false]] # Setup integration - order = 2 + order = 1 degree = 2 * order Ω = Triangulation(model) dΩ = Measure(Ω, degree)