When saving a zero DA object to file the string " ALL COEFFICIENTS ZERO" is shorter than 36 characters. This causes a wrong behaviour of ifstram >> operator which consumes the terminator line of the DA object as part of the coefficients line. In this way, the terminator line is searched in the following empty line, which causes an out_of_range exception in the compare method of std::string. The easy fix would be to pad with spaces up to 36 character the string " ALL COEFFICIENTS ZERO" in daceio.c. This will solve the problem for newly created file, but not for older ones.
A workaround to load the old file is to add the spaces (up to 36 character) to all the line " ALL COEFFICIENTS ZERO" in the output file.
When saving a zero DA object to file the string " ALL COEFFICIENTS ZERO" is shorter than 36 characters. This causes a wrong behaviour of ifstram >> operator which consumes the terminator line of the DA object as part of the coefficients line. In this way, the terminator line is searched in the following empty line, which causes an out_of_range exception in the compare method of std::string. The easy fix would be to pad with spaces up to 36 character the string " ALL COEFFICIENTS ZERO" in daceio.c. This will solve the problem for newly created file, but not for older ones.
A workaround to load the old file is to add the spaces (up to 36 character) to all the line " ALL COEFFICIENTS ZERO" in the output file.