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

Give meaningful error message when assembling continuum elasticity problem fails #245

Merged
merged 1 commit into from
Oct 27, 2019

Conversation

ahojukka5
Copy link
Member

@ahojukka5 ahojukka5 commented Oct 13, 2019

Sometimes user may have the wrong kind of elements in element set when
assembling 3d continuum problem. This could happen for example in
situations, where mesher is giving also segment elements. They may have
some use in certain situations, but currently we don't support them.
When assembly is failing for this reasons, we give a meaningful error
message:

[ Info: It looks that you are trying to assemble elements of type Seg3
to 3d continuum problem. However, they are not supported yet. To filter
out elements from a element set, try filter(element->!isa(element, Element{Seg3}), elements)
ERROR: LoadError: Tried to assemble unsupported elements of type Seg3 to
3d continuum problem.

This commit closes issue #211.

@ahojukka5 ahojukka5 self-assigned this Oct 13, 2019
@ahojukka5 ahojukka5 force-pushed the ahojukka5/assemble-3d-seg3-elasticity branch from 9ab7145 to 170c01f Compare October 13, 2019 09:31
@ahojukka5
Copy link
Member Author

Or what do you think, should we skip with a warning or throw an exception giving an idea of how to filter elements out?

…oblem fails

Sometimes user may have the wrong kind of elements in element set when
assembling 3d continuum problem. This could happen for example in
situations, where mesher is giving also segment elements. They may have
some use in certain situations, but currently we don't support them.
When assembly is failing for this reasons, we give a meaningful error
message:

[ Info: It looks that you are trying to assemble elements of type Seg3
to 3d continuum problem. However, they are not supported yet. To filter
out elements from a element set, try `filter(element->!isa(element,
Element{Seg3}), elements)`
ERROR: LoadError: Tried to assemble unsupported elements of type Seg3 to
3d continuum problem.

This commit closes issue #211.
@ahojukka5 ahojukka5 force-pushed the ahojukka5/assemble-3d-seg3-elasticity branch from 170c01f to a3df25a Compare October 13, 2019 09:35
@ahojukka5 ahojukka5 merged commit c4b46dd into master Oct 27, 2019
@ahojukka5 ahojukka5 deleted the ahojukka5/assemble-3d-seg3-elasticity branch October 27, 2019 10:50
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