Layers2Grid fails with error 'std:bad_alloc' when input mesh has small differences close to numeric limit in one dimension
Description
In this example, one of the input meshes (m6.vtu) has a delta of the min-max values of the nodes in the Z coordinate at 1e-14. When the grid for this mesh is created, it is recognized as a 3D mesh although it should be a 2D mesh. This results in an extremely large grid, which exceeds the memory capacity.
Steps to Reproduce the Problem
- Layers2Grid -i meshList.txt -o testMesh.vtu -x 100
Expected behavior: [all input meshes are detected as 2D mesh]
Actual behavior: [1 mesh is detected as 3D mesh]
Specifications
- Version: (This is OpenGeoSys-6 version 6.4.4-338-g85abcb4b.dirty.)
- Platform: (ManjaroLinux 22.1.1)