Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 740
    • Issues 740
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 199
    • Merge requests 199
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #18103
Closed
Open
Created 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
Time tracking