Skip to content

Commit 3c3ecb7

Browse files
authored
Merge pull request #54 from MultiSimOLab/faster-visco
[Testing and benchmarking] Faster visco-elastic simulation test
2 parents 3dc1654 + 84db157 commit 3c3ecb7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

benchmark/SimulationsBenchmarks/ViscoElasticSimulationBenchmark.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
filename = projdir("test/data/ViscoElasticSimulation.jl")
33
include(filename)
44

5-
SUITE["Simulations"]["ViscoElastic"] = @benchmarkable visco_elastic_simulation(writevtk=false, verbose=false)
5+
SUITE["Simulations"]["ViscoElastic"] = @benchmarkable visco_elastic_simulation(t_end=2, writevtk=false, verbose=false)

test/SimulationsTests/ViscoElasticSimulationTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
filename = projdir("test/data/ViscoElasticSimulation.jl")
33
include(filename)
44

5-
λx, σΓ = visco_elastic_simulation(t_end=5, writevtk=false, verbose=false)
5+
λx, σΓ = visco_elastic_simulation(t_end=2, writevtk=false, verbose=false)
66

7-
@test σΓ[end] 152821.386
7+
@test σΓ[end] 80903.472

test/data/ViscoElasticSimulation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function visco_elastic_simulation(;t_end=15, writevtk=true, verbose=true)
4040
[true, true, true], [true, false, true], [true, false, false], [true, false, false]]
4141

4242
# Setup integration
43-
order = 2
43+
order = 1
4444
degree = 2 * order
4545
Ω = Triangulation(model)
4646
= Measure(Ω, degree)

0 commit comments

Comments
 (0)