Skip to content

Fix UnidentifiedShape I/O

Riccardo Maria Bianchi requested to merge FixUnidentifiedShapeIO into main

This MR fixes the I/O of the GeoUnidentifiedShape. In particular, it fixes the restore, which was broken in two points:

  • the UnidentifiedShape name parameter was read from the DB instead of the asciiData, because the name was read twice (the index of the vector was not modified correctly)
  • the UnidentifiedShape parameters were used in the wrong order and the shape was constructed in the wrong way: the constructor, in fact, was called as GeoUnidentifiedShape(asciiData, name) instead of the correct GeoUnidentifiedShape(name, asciiData)

This MR also adds a new CTest unit test to test the write and restore of the GeoUnidentifiedShape node.

Cc: @boudreau @tsulaia

Edited by Riccardo Maria Bianchi

Merge request reports

Loading