vle-forge / vle

Virtual Laboratory Environment
http://www.vle-project.org
GNU General Public License v3.0
21 stars 22 forks source link

MPI cvle fails to read low numbers #398

Open rtrepos opened 6 months ago

rtrepos commented 6 months ago

Results of a simulation with cvle is first written into a text file which is read by cvle (using std::stod to convert to double). But stod launch a std_out_of_range exception if the number is to low, although it is representable.

See for example : https://stackoverflow.com/questions/48086830/stdstod-throws-out-of-range-error-for-a-string-that-should-be-valid

Problem occurs here : https://github.com/vle-forge/vle/blob/1e57ec0b316ac1403977fab6d196629b35d97b57/src/vle/manager/details/cvle_specific.hpp#L246