Skip to content

Commit a721904

Browse files
committed
Removes commented-out benchmark data
Removes commented-out lines containing benchmark timing and memory allocation data. This improves code readability and maintainability by removing irrelevant information from the test file.
1 parent 6b07f14 commit a721904

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/TestConstitutiveModels/PhysicalModelTests.jl

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ end
429429

430430

431431
@testset "ThermoMech_EntropicPolyconvex" begin
432-
# 63.3 μs Histogram: log(frequency) by time 169 μs <
433-
# Memory estimate: 4.28 KiB, allocs estimate: 89
432+
# 63.3 μs Histogram: log(frequency) by time 169 μs <
433+
# Memory estimate: 4.28 KiB, allocs estimate: 89
434434
∇u = 1e-1 * TensorValue(1, 2, 3, 4, 5, 6, 7, 8, 9)
435435
θt = 21.6
436436
modmec = MooneyRivlin3D=10.0, μ1=1.0, μ2=1.0, ρ=1.0)
@@ -458,7 +458,7 @@ end
458458

459459

460460
@testset "ThermoElectroMech_Bonet" begin
461-
# Memory estimate: 0 bytes, allocs estimate: 0.
461+
# Memory estimate: 0 bytes, allocs estimate: 0.
462462
∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3
463463
∇φ = VectorValue(1.0, 2.0, 3.0)
464464
θt = 3.4 - 1.0
@@ -501,7 +501,7 @@ end
501501

502502

503503
@testset "VolumetricEnergy" begin
504-
# Memory estimate: 0 bytes, allocs estimate: 0.
504+
# Memory estimate: 0 bytes, allocs estimate: 0.
505505
∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3
506506
model = VolumetricEnergy=0.0)
507507
test_derivatives_3D_(model, Kinematics(Mechano, Solid))
@@ -512,8 +512,8 @@ end
512512

513513

514514
@testset "ThermoElectroMech_Govindjee" begin
515-
# 121 μs Histogram: log(frequency) by time 331 μs <
516-
# Memory estimate: 18.98 KiB, allocs estimate: 300.
515+
# 121 μs Histogram: log(frequency) by time 331 μs <
516+
# Memory estimate: 18.98 KiB, allocs estimate: 300.
517517

518518
∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3
519519
∇φ = VectorValue(1.0, 2.0, 3.0)
@@ -606,7 +606,7 @@ end
606606

607607

608608
@testset "IdealMagnetic2D" begin
609-
# Memory estimate: 0 bytes, allocs estimate: 0.
609+
# Memory estimate: 0 bytes, allocs estimate: 0.
610610
∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3
611611
∇φ = VectorValue(1.0, 2.0)
612612

@@ -635,7 +635,7 @@ end
635635

636636

637637
@testset "IdealMagnetic" begin
638-
# Memory estimate: 0 bytes, allocs estimate: 0.
638+
# Memory estimate: 0 bytes, allocs estimate: 0.
639639
∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3
640640
∇φ = VectorValue(1.0, 2.0, 3.0)
641641

@@ -671,7 +671,7 @@ end
671671

672672

673673
@testset "HardMagnetic_SoftMaterial3D_aniso" begin
674-
# Memory estimate: 0 bytes, allocs estimate: 0.
674+
# Memory estimate: 0 bytes, allocs estimate: 0.
675675
∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3
676676
∇φ = VectorValue(1.0, 2.0, 3.0)
677677
N = VectorValue(0.0, 0.0, 1.0)
@@ -713,7 +713,7 @@ end
713713

714714

715715
@testset "HardMagnetic_SoftMaterial3D" begin
716-
# Memory estimate: 0 bytes, allocs estimate: 0.
716+
# Memory estimate: 0 bytes, allocs estimate: 0.
717717
∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3
718718
∇φ = VectorValue(1.0, 2.0, 3.0)
719719
N = VectorValue(0.0, 0.0, 1.0)
@@ -751,7 +751,7 @@ end
751751

752752

753753
@testset "Magnetic3D" begin
754-
# Memory estimate: 0 bytes, allocs estimate: 0.
754+
# Memory estimate: 0 bytes, allocs estimate: 0.
755755
∇φ = VectorValue(1.0, 2.0, 3.0)
756756
a = 40e-3
757757
modelID = Magnetic(μ0=1.2566e-6, αr=a, χe=0.0)
@@ -775,7 +775,7 @@ end
775775

776776

777777
@testset "Magnetic2D" begin
778-
# Memory estimate: 0 bytes, allocs estimate: 0.
778+
# Memory estimate: 0 bytes, allocs estimate: 0.
779779
∇φ = VectorValue(1.0, 2.0)
780780
a = 40e-3
781781
modelID = Magnetic(μ0=1.2566e-6, αr=a, χe=0.0)
@@ -800,7 +800,7 @@ end
800800

801801

802802
@testset "IdealMagnetic_SoftMaterial2D" begin
803-
# Memory estimate: 0 bytes, allocs estimate: 0.
803+
# Memory estimate: 0 bytes, allocs estimate: 0.
804804
∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3
805805
∇φ = VectorValue(1.0, 2.0)
806806
N = VectorValue(0.0, 1.0)
@@ -843,7 +843,7 @@ end
843843

844844

845845
@testset "HardMagnetic_SoftMaterial2D" begin
846-
# Memory estimate: 0 bytes, allocs estimate: 0.
846+
# Memory estimate: 0 bytes, allocs estimate: 0.
847847
∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3
848848
∇φ = VectorValue(1.0, 2.0)
849849
N = VectorValue(0.0, 1.0)
@@ -888,7 +888,7 @@ end
888888

889889

890890
@testset "ARAP2D" begin
891-
# Memory estimate: 0 bytes, allocs estimate: 0.
891+
# Memory estimate: 0 bytes, allocs estimate: 0.
892892
model = ARAP2D=μParams[1])
893893
test_derivatives_2D_(model, Kinematics(Mechano, Solid), rtol=1e-13)
894894
test_equilibrium_at_rest_2D(model)
@@ -898,7 +898,7 @@ end
898898

899899

900900
@testset "ARAP2D_regularized" begin
901-
# Memory estimate: 0 bytes, allocs estimate: 0.
901+
# Memory estimate: 0 bytes, allocs estimate: 0.
902902
model = ARAP2D_regularized=μParams[1])
903903
test_derivatives_2D_(model, Kinematics(Mechano, Solid), rtol=1e-13)
904904
test_equilibrium_at_rest_2D(model)
@@ -936,8 +936,8 @@ end
936936

937937

938938
@testset "Hessian∇JRegularization" begin
939-
# 4.09 μs Histogram: log(frequency) by time 10.8 μs <
940-
# Memory estimate: 2.58 KiB, allocs estimate: 11.
939+
# 4.09 μs Histogram: log(frequency) by time 10.8 μs <
940+
# Memory estimate: 2.58 KiB, allocs estimate: 11.
941941
∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3
942942
∇u0 = TensorValue(1.0, 2.0, 3.0, 4.0) * 0.0
943943
model = ARAP2D=μParams[1])

0 commit comments

Comments
 (0)