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

Update Operators for DPF 241 on master #1131

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

github-actions[bot]
Copy link
Contributor

An update of operators has been triggered either manually or by an update in the dpf-standalone repository.

@github-actions github-actions bot added the maintenance Repository structure maintenance label Aug 31, 2023
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #1131 (44e3545) into master (c603f27) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1131      +/-   ##
==========================================
+ Coverage   87.37%   87.39%   +0.02%     
==========================================
  Files          81       81              
  Lines        9197     9197              
==========================================
+ Hits         8036     8038       +2     
+ Misses       1161     1159       -2     

Comment on lines +14 to +16
"""Compute the measure of the Elements (volume for 3D elements, surface
for 2D elements or length for 1D elements) using default shape
functions, except for polyhedrons.
Copy link
Contributor

Choose a reason for hiding this comment

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

@MichaelNale @rafacanton it does not say what happens in the case of polyhedrons

Copy link
Contributor

Choose a reason for hiding this comment

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

It uses geometrical considerations to compute volume in that case, but I agree, it could be mentioned

Comment on lines +22 to +25
If not provided, the measure of all elements
for the mesh is computed. if
provided, the scoping needs to have
"elemental" location.
Copy link
Contributor

Choose a reason for hiding this comment

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

@MichaelNale @rafacanton

Suggested change
If not provided, the measure of all elements
for the mesh is computed. if
provided, the scoping needs to have
"elemental" location.
If not provided, the measure is computed
for each element in the mesh. If
provided, the scoping needs to have
"elemental" location.

class faces_area(Operator):
"""Compute the measure of the Faces (surface for 2D faces of a 3D model
or length for 1D faces of a 2D model) using default shape
functions, except for polygons.
Copy link
Contributor

Choose a reason for hiding this comment

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

@MichaelNale @rafacanton same here, what happens in the case of polygons?

Copy link
Contributor

Choose a reason for hiding this comment

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

same as above, it employs pure geometry

Comment on lines +22 to +25
If not provided, the measure of all faces in
the mesh is computed. if provided,
the scoping needs to have "faces"
location.
Copy link
Contributor

@PProfizi PProfizi Aug 31, 2023

Choose a reason for hiding this comment

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

@MichaelNale @rafacanton same here, is it "the measure of all faces in the mesh" or "the measure of each face in the mesh"?

@rafacanton
Copy link
Contributor

@PProfizi I will merge it so the operators are up-to-date and make a note to improve the specs of the faces and elements calculations as per your comments. Thanks!

@rafacanton rafacanton merged commit c110af5 into master Aug 31, 2023
31 checks passed
@rafacanton rafacanton deleted the maint/update_operators_for_241_on_master branch August 31, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Repository structure maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants