Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge (Cell|Face)(Scalar|Vector)Values #708

Merged
merged 1 commit into from
May 16, 2023
Merged

Conversation

fredrikekre
Copy link
Member

No description provided.

@fredrikekre fredrikekre force-pushed the fe/merge-values branch 3 times, most recently from 93b6ab4 to 7b05cfc Compare May 12, 2023 22:19
@codecov-commenter
Copy link

codecov-commenter commented May 12, 2023

Codecov Report

Patch coverage: 96.64% and project coverage change: +0.01 🎉

Comparison is base (976365b) 92.63% compared to head (80b39a2) 92.65%.

❗ Current head 80b39a2 differs from pull request most recent head 98f9b15. Consider uploading reports for the commit 98f9b15 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #708      +/-   ##
==========================================
+ Coverage   92.63%   92.65%   +0.01%     
==========================================
  Files          30       30              
  Lines        4429     4355      -74     
==========================================
- Hits         4103     4035      -68     
+ Misses        326      320       -6     
Impacted Files Coverage Δ
src/Ferrite.jl 100.00% <ø> (ø)
src/deprecations.jl 21.56% <50.00%> (-15.10%) ⬇️
src/FEValues/common_values.jl 93.75% <94.59%> (+3.57%) ⬆️
src/PointEval/point_values.jl 97.36% <96.55%> (+2.92%) ⬆️
src/Dofs/DofHandler.jl 92.44% <100.00%> (+0.25%) ⬆️
src/Dofs/apply_analytical.jl 100.00% <100.00%> (ø)
src/FEValues/cell_values.jl 100.00% <100.00%> (ø)
src/FEValues/face_integrals.jl 95.32% <100.00%> (+0.37%) ⬆️
src/FEValues/face_values.jl 100.00% <100.00%> (ø)
src/L2_projection.jl 100.00% <100.00%> (ø)
... and 1 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fredrikekre fredrikekre changed the title :) Merge (Cell|Face)(Scalar|Vector)Values May 15, 2023
src/Ferrite.jl Outdated Show resolved Hide resolved
Copy link
Member

@termi-official termi-official left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a few things to discuss.

docs/src/literate/landau.jl Show resolved Hide resolved
docs/src/literate/incompressible_elasticity.jl Outdated Show resolved Hide resolved
docs/src/literate/heat_equation.jl Show resolved Hide resolved
src/Dofs/DofHandler.jl Show resolved Hide resolved
src/Ferrite.jl Show resolved Hide resolved
src/PointEval/point_values.jl Show resolved Hide resolved
src/exports.jl Outdated Show resolved Hide resolved
test/runtests.jl Outdated Show resolved Hide resolved
test/test_cellvalues.jl Outdated Show resolved Hide resolved
test/test_facevalues.jl Outdated Show resolved Hide resolved
…)Values`

This patch merges:
 - `CellScalarValues` and `CellVectorValues` into `CellValues`,
 - `FaceScalarValues` and `FaceVectorValues` into `FaceValues`,
 - `PointScalarValues` and `PointVectorValues` into `PointValues`.

This is possible now that interpolations are vectorized instead (#694)
and, for example, `CellVectorValues(::Interpolation)` can now be spelled
as simply `CellValues(::VectorInterpolation)`.

The new structs have new parametrization to be more general wrt the
storage types to enable embedded elements (#651). They are also
parametrized wrt the function interpolation, to enable dispatching on
this in e.g. `reinit!`.

Instead of simply deprecating the old API (with a warning) this  patch
implements hard errors for the old constructors with a clear message on
how to upgrade. The reason for this is that i) it is possible to tank
performance with the new parametrization, ii) for any non-trivial use
one would run into errors anyway (e.g. `f(::CellVectorValues)` would give
a non-descriptive `MethodError`).

Closes #682.
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.

3 participants