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

Add quad tri support #268

Merged
merged 4 commits into from
Jun 7, 2023
Merged

Add quad tri support #268

merged 4 commits into from
Jun 7, 2023

Conversation

akaszynski
Copy link
Collaborator

@akaszynski akaszynski commented Jun 6, 2023

Resolve #260 by adding support for degenerate quadratic triangular elements.

MAPDL does not write out 0s at the end of lines, and quad elements with missing midside nodes will have fewer than 8 nodes, which resulted in point indices not being allocated, leading to reading out of bounds in rare cases.

These triangular elements were also misencoded as quads within VTK. This PR resolves both these issues.

Bonus

  • Remove trailing whitespace with pre-commit
  • Enforce code styling for C(++) files.
  • Drop build for 3.7

@jorgepiloto and @RobPasMue, please consider enforcing code style for C files using ClangFormat. Works quite well, and you can even consider adopting a different standard (see Clang-Format Style Options).

@germa89, since we're dropping Python 3.7, please remove them from the required workflows.

@RobPasMue
Copy link
Member

@akaszynski - just removed Python 3.7 from the required stages, and added Python 3.11

We will plan on creating such an action. Thanks for proposing it!

Copy link
Member

@RobPasMue RobPasMue left a comment

Choose a reason for hiding this comment

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

LGTM - merging PR

@RobPasMue RobPasMue merged commit 63cc14a into main Jun 7, 2023
@RobPasMue RobPasMue deleted the fix/relax-quad-tri branch June 7, 2023 07:08
@germa89
Copy link
Contributor

germa89 commented Jun 12, 2023

Thank you @RobPasMue and @akaszynski

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.

Segfault in fix_missing_midside
3 participants