use std::stoX() functions

This commit is contained in:
Axel Kohlmeyer
2024-07-30 03:57:23 -04:00
parent 92cbbaab6a
commit 620af2599b
6 changed files with 19 additions and 18 deletions

View File

@ -484,7 +484,7 @@ void ReaderNative::read_atoms(int n, int nfield, double **fields)
// convert selected fields to floats
for (int m = 0; m < nfield; m++)
fields[i][m] = atof(words[fieldindex[m]].c_str());
fields[i][m] = std::stod(words[fieldindex[m]]);
}
}
}