Skip to content

Incorrect writeEntry argument in csvTableReader

Summary

The csvTableReader is inconsistent in reading and writing the componentColumns_:

  • In the constructor (line 117): componentColumns_(getComponentColumns("valueColumns", dict))
  • Inside write(os) (line 226): os.writeEntry("componentColumns", componentColumns_);

As a result any simulation with e.g. a fan curve read from a csv file crashes when a simulation is continued or when post-processing tools such as foamToVTK are applied because of a "missing entry" error.

The error was not present in v1912.

Possible fixes

Either change line 117 or 226 but make them consistent.