From e17dc38087b1be628731418aac503ccbddf674f9 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 23 Jun 2024 03:56:10 -0400 Subject: [PATCH] use utils::numeric to convert text to numbers --- src/ML-POD/fitpod_command.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ML-POD/fitpod_command.cpp b/src/ML-POD/fitpod_command.cpp index fc5abefa52..54a3a4eab8 100644 --- a/src/ML-POD/fitpod_command.cpp +++ b/src/ML-POD/fitpod_command.cpp @@ -315,10 +315,8 @@ int FitPOD::read_data_file(double *fitting_weights, std::string &file_format, while (numwords == 3){ // Insert in map. - double we = atof(words[1].c_str()); - we_map[words[0]] = atof(words[1].c_str()); - double wf = atof(words[2].c_str()); - wf_map[words[0]] = atof(words[2].c_str()); + we_map[words[0]] = utils::numeric(FLERR, words[1], false, lmp); + wf_map[words[0]] = utils::numeric(FLERR, words[2], false, lmp); // Get next line. if (comm->me == 0) {