Minor bug with the UCD reader #3370
Replies: 3 comments 3 replies
-
Additionally, this is less of a bug more of a feature request, but in the current implementation the ucd_io implementation immediately renumbers the nodes upon reading in, which means that, in the event your nodes are not in ascending order, or are not continuously numbered, the mesh will not read correctly, despite there being enough information in the input ucd file to correctly build the mesh if the given node ID's are used for mapping before a new zero based index is created. I appreciate this is very much an edge case, and it's something I can remedy on my end, so feel free to write this off as scope creep for your implementation. |
Beta Was this translation helpful? Give feedback.
-
Bump. This issue threw me off again today. |
Beta Was this translation helpful? Give feedback.
-
There is a flag on the Mesh that you can set via:
however I suspect the issue in this case is that the renumbering happens implicitly with the UCD reader, so it probably requires an update. Can you attach an example of a UCD mesh that currently gets renumbered? That would be helpful to use for developing the fix for that case. |
Beta Was this translation helpful? Give feedback.
-
Hi, been using UCD files in MOOSE recently and discovered a bug which I believe is in Libmesh. When loading a mesh from a UCD file, if the filename/path is invalid, instead of throwing an error like this:
*** ERROR *** Error opening ExodusII mesh file: /Users/me/projects/some_project/some_folder/singlehex.e
which occurs when reading an invalid exodus, the mesh reader simple "reads" and returns a mesh with zero nodes, zero elements and zero volume. It seems that ucd_io is missing a simple "is this a real file" check.
Beta Was this translation helpful? Give feedback.
All reactions