Skip to content

Conversation

@jmartfrut
Copy link
Collaborator

@jmartfrut jmartfrut commented Nov 18, 2025

new tests for Dirichlet boundary conditions manipulation

@github-actions
Copy link

github-actions bot commented Nov 18, 2025

Benchmark Results (Julia v1)

Time benchmarks
main 37e2441... main / 37e2441...
Constitutive models/Visco-elastic Ψ 0.0496 ± 0.029 ms 0.0492 ± 0.029 ms 1.01 ± 0.85
Constitutive models/Visco-elastic ∂Ψu 0.0625 ± 0.0028 ms 0.063 ± 0.0031 ms 0.992 ± 0.066
Constitutive models/Visco-elastic ∂Ψuu 0.112 ± 0.019 ms 0.114 ± 0.024 ms 0.982 ± 0.27
Simulations/StaticMechanicalDirichlet 0.145 ± 0.012 s 0.142 ± 0.0085 s 1.02 ± 0.11
Simulations/StaticMechanicalNeumann 0.128 ± 0.012 s 0.127 ± 0.014 s 1.01 ± 0.15
Simulations/ViscoElastic 8.08 s 8.1 s 0.998
Tensor algebra/Cofactor 0.07 ± 0.01 μs 0.07 ± 0 μs 1 ± 0.14
Tensor algebra/Det(A)Inv(A') 0.131 ± 0.01 μs 0.14 ± 0.011 μs 0.936 ± 0.1
Tensor algebra/δδ_λ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
Tensor algebra/δδ_μ_2d 30 ± 10 ns 30 ± 0 ns 1 ± 0.33
time_to_load 2.37 ± 0.015 s 2.37 ± 0.012 s 1 ± 0.0081
Memory benchmarks
main 37e2441... main / 37e2441...
Constitutive models/Visco-elastic Ψ 1.25 k allocs: 0.0794 MB 1.25 k allocs: 0.0794 MB 1
Constitutive models/Visco-elastic ∂Ψu 1.37 k allocs: 0.0917 MB 1.37 k allocs: 0.0917 MB 1
Constitutive models/Visco-elastic ∂Ψuu 2.31 k allocs: 0.158 MB 2.31 k allocs: 0.158 MB 1
Simulations/StaticMechanicalDirichlet 1.59 M allocs: 0.114 GB 1.59 M allocs: 0.114 GB 1
Simulations/StaticMechanicalNeumann 1.41 M allocs: 0.0901 GB 1.41 M allocs: 0.0901 GB 1
Simulations/ViscoElastic 0.128 G allocs: 8.3 GB 0.128 G allocs: 8.3 GB 1
Tensor algebra/Cofactor 1 allocs: 0.0781 kB 1 allocs: 0.0781 kB 1
Tensor algebra/Det(A)Inv(A') 4 allocs: 0.25 kB 4 allocs: 0.25 kB 1
Tensor algebra/δδ_λ_2d 0 allocs: 0 B 0 allocs: 0 B
Tensor algebra/δδ_μ_2d 0 allocs: 0 B 0 allocs: 0 B
time_to_load 0.149 k allocs: 11.1 kB 0.149 k allocs: 11.1 kB 1

Turns on verbose output for the vacmech Newton-Raphson solver.
This allows for more detailed monitoring and debugging of the
solver's behavior during the Boundary Conditions test.
Updates file paths for GmshDiscreteModel to ensure tests
correctly locate mesh files, and changes parameter
naming for better code readability.
Updates the mesh file paths to use `projdir` to ensure correct file resolution regardless of the current working directory.
This improves the robustness of the tests by making them independent of the execution environment.
Updates tests in BoundaryConditions.jl to use `isapprox` with a
specified tolerance (rtol=1e-14) instead of direct equality checks.
This resolves potential issues caused by floating-point precision
variations.
@jmartfrut jmartfrut merged commit 5795bfb into main Nov 20, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants