Skip to content

Deprecated functions from PostProcessors - #226

Open
miguelmaso wants to merge 4 commits into
mainfrom
deprecate-post-metrics
Open

Deprecated functions from PostProcessors#226
miguelmaso wants to merge 4 commits into
mainfrom
deprecate-post-metrics

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator

Some functions from PostProcessors have been deprecated in favour of the more generic interpolate_L2_field and L2_projection.

If approved, the roadmap would be:

  1. Merge this PR once 0.0.6 is released in GitHub and published in Julia
    • The version 0.0.6 will continue working with no changes
    • The pre-release version will throw warnings
  2. Wait until the future version 0.0.7 is released
    • The version 0.0.7 will throw warnings
  3. Create a subsequent PR deleting all the deprecated methods
    • The version 0.0.7 will throw warnings
    • The pre-release version will not provide the removed functions
  4. Wait until version 0.0.8 is released
    • The version 0.0.8 will not provide the removed functions

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main a929234... main / a929234...
Constitutive models/Visco-elastic Ψ 28.5 ± 12 μs 28.6 ± 12 μs 0.997 ± 0.58
Constitutive models/Visco-elastic ∂Ψ∂F 24.5 ± 12 μs 24.3 ± 12 μs 1.01 ± 0.72
Constitutive models/Visco-elastic ∂∂Ψ∂FF 0.0555 ± 0.02 ms 0.0657 ± 0.021 ms 0.844 ± 0.41
Constitutive models/Visco-polyconvex Ψ 0.111 ± 0.002 μs 0.111 ± 0.002 μs 1 ± 0.025
Constitutive models/Visco-polyconvex ∂Ψ∂F 0.125 ± 0.002 μs 0.124 ± 0.003 μs 1.01 ± 0.029
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 6.7 ± 3.4 μs 6.6 ± 3.4 μs 1.01 ± 0.74
Simulations/StaticMechanicalDirichlet 0.119 ± 0.0089 s 0.12 ± 0.014 s 0.988 ± 0.14
Simulations/StaticMechanicalNeumann 0.0951 ± 0.018 s 0.0969 ± 0.022 s 0.981 ± 0.29
Simulations/ViscoElastic 10.3 s 10.3 s 0.998
Tensor algebra/Cofactor 0.059 ± 0.002 μs 0.06 ± 0.002 μs 0.983 ± 0.047
Tensor algebra/Det(A)Inv(A') 0.084 ± 0.002 μs 0.084 ± 0.002 μs 1 ± 0.034
Tensor algebra/IIsym 0.056 ± 0.003 μs 0.058 ± 0.003 μs 0.966 ± 0.072
Tensor algebra/push_forward_C_to_F 0.18 ± 0.003 μs 0.165 ± 0.008 μs 1.09 ± 0.056
Tensor algebra/×ᵢ⁴ 0.056 ± 0.002 μs 0.055 ± 0.002 μs 1.02 ± 0.052
Tensor algebra/δδ_λ_2d 19 ± 1 ns 19 ± 1 ns 1 ± 0.074
Tensor algebra/δδ_μ_2d 19 ± 1 ns 19 ± 1 ns 1 ± 0.074
time_to_load 2.07 ± 0.037 s 2.16 ± 0.026 s 0.962 ± 0.02
Memory benchmarks
main a929234... main / a929234...
Constitutive models/Visco-elastic Ψ 0.542 k allocs: 0.0443 MB 0.542 k allocs: 0.0443 MB 1
Constitutive models/Visco-elastic ∂Ψ∂F 0.593 k allocs: 0.0492 MB 0.593 k allocs: 0.0492 MB 1
Constitutive models/Visco-elastic ∂∂Ψ∂FF 1.05 k allocs: 0.0853 MB 1.05 k allocs: 0.0853 MB 1
Constitutive models/Visco-polyconvex Ψ 0 allocs: 0 B 0 allocs: 0 B
Constitutive models/Visco-polyconvex ∂Ψ∂F 0 allocs: 0 B 0 allocs: 0 B
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 0.187 k allocs: 15.2 kB 0.187 k allocs: 15.2 kB 1
Simulations/StaticMechanicalDirichlet 1.51 M allocs: 0.108 GB 1.51 M allocs: 0.108 GB 1
Simulations/StaticMechanicalNeumann 1.48 M allocs: 0.0927 GB 1.48 M allocs: 0.0927 GB 1
Simulations/ViscoElastic 0.162 G allocs: 12.8 GB 0.162 G allocs: 12.8 GB 1
Tensor algebra/Cofactor 2 allocs: 0.156 kB 2 allocs: 0.156 kB 1
Tensor algebra/Det(A)Inv(A') 4 allocs: 0.25 kB 4 allocs: 0.25 kB 1
Tensor algebra/IIsym 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/push_forward_C_to_F 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/×ᵢ⁴ 1 allocs: 0.656 kB 1 allocs: 0.656 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

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.

1 participant