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
looks (IMO) fairly ugly, but with brackets
looks pretty messy.
These are however, secondary factors. Mostly need to not crash on these types of dimensions.