Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
VTK
VTK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 581
    • Issues 581
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 162
    • Merge Requests 162
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #18103

Closed
Open
Opened Feb 01, 2021 by olesen@olesenDeveloper

openfoam crashes on non-integer dimensions

Had wondered about the code myself, and this forum posting confirms it: the vtkOpenFOAMReader expects integers for field dimensions.

His input had this:

dimensions      [0 0.5 -0.5 0 0 0 0];

which causes the crash.

The vtkFoamEntryValue::ReadDimensionSet() method in the vtkOpenFOAMReader needs to accept floats. In the stringify routine, will need modified logic for checking, possibly with modified exponents.

Eg, writing the above without any brackets

m0.5/s0.5

looks (IMO) fairly ugly, but with brackets

m^(0.5)/s^(0.5)

looks pretty messy.

These are however, secondary factors. Mostly need to not crash on these types of dimensions.

Edited Feb 04, 2021 by olesen
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: vtk/vtk#18103