Replace Atom::count_words with utils::count_words
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user