JuliaFEM / JuliaFEM.jl

The JuliaFEM software library is a framework that allows for the distributed processing of large Finite Element Models across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.
http://juliafem.github.io/JuliaFEM.jl/latest/
MIT License
249 stars 66 forks source link

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

Closed ahojukka5 closed 4 years ago

ahojukka5 commented 4 years ago

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 commented 4 years ago

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