Replace Atom::count_words with utils::count_words

This commit is contained in:
Richard Berger
2020-05-15 16:18:24 -04:00
parent db46521d64
commit 4a2d3e95cb
56 changed files with 135 additions and 150 deletions

View File

@ -25,6 +25,7 @@
#include "math_extra.h"
#include "memory.h"
#include "error.h"
#include "utils.h"
using namespace LAMMPS_NS;
@ -1400,7 +1401,7 @@ void Molecule::body(int flag, int pflag, char *line)
while (nword < nparam) {
readline(line);
ncount = atom->count_words(line);
ncount = utils::count_words(line);
if (ncount == 0)
error->one(FLERR,"Too few values in body section of molecule file");
if (nword+ncount > nparam)