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

@ -191,7 +191,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) :
int me,nprocs;
MPI_Comm_rank(communicator,&me);
MPI_Comm_size(communicator,&nprocs);
int color = atoi(arg[iarg+1]);
int color = std::stoi(arg[iarg+1]);
MPI_Comm subcomm;
MPI_Comm_split(communicator,color,me,&subcomm);
external_comm = communicator;