vle
vle copied to clipboard
MPI cvle fails to read low numbers
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