9
9
#include " pair_nnp.h"
10
10
#include " atom.h"
11
11
#include " comm.h"
12
- #include " force.h"
13
12
#include " neighbor.h"
14
13
#include " neigh_list.h"
15
14
#include " neigh_request.h"
16
15
#include " memory.h"
17
16
#include " error.h"
18
17
#include " update.h"
18
+ #include " utils.h"
19
19
20
20
using namespace LAMMPS_NS ;
21
21
@@ -130,13 +130,13 @@ void PairNNP::settings(int narg, char **arg)
130
130
} else if (strcmp (arg[iarg]," showewsum" ) == 0 ) {
131
131
if (iarg+2 > narg)
132
132
error->all (FLERR," Illegal pair_style command" );
133
- showewsum = force-> inumeric (FLERR,arg[iarg+1 ]);
133
+ showewsum = utils:: inumeric (FLERR,arg[iarg+1 ], false ,lmp );
134
134
iarg += 2 ;
135
135
// maximum allowed extrapolation warnings
136
136
} else if (strcmp (arg[iarg]," maxew" ) == 0 ) {
137
137
if (iarg+2 > narg)
138
138
error->all (FLERR," Illegal pair_style command" );
139
- maxew = force-> inumeric (FLERR,arg[iarg+1 ]);
139
+ maxew = utils:: inumeric (FLERR,arg[iarg+1 ], false ,lmp );
140
140
iarg += 2 ;
141
141
// reset extrapolation warning counter
142
142
} else if (strcmp (arg[iarg]," resetew" ) == 0 ) {
@@ -153,13 +153,13 @@ void PairNNP::settings(int narg, char **arg)
153
153
} else if (strcmp (arg[iarg]," cflength" ) == 0 ) {
154
154
if (iarg+2 > narg)
155
155
error->all (FLERR," Illegal pair_style command" );
156
- cflength = force-> numeric (FLERR,arg[iarg+1 ]);
156
+ cflength = utils:: numeric (FLERR,arg[iarg+1 ], false ,lmp );
157
157
iarg += 2 ;
158
158
// energy unit conversion factor
159
159
} else if (strcmp (arg[iarg]," cfenergy" ) == 0 ) {
160
160
if (iarg+2 > narg)
161
161
error->all (FLERR," Illegal pair_style command" );
162
- cfenergy = force-> numeric (FLERR,arg[iarg+1 ]);
162
+ cfenergy = utils:: numeric (FLERR,arg[iarg+1 ], false ,lmp );
163
163
iarg += 2 ;
164
164
} else error->all (FLERR," Illegal pair_style command" );
165
165
}
@@ -176,10 +176,10 @@ void PairNNP::coeff(int narg, char **arg)
176
176
if (narg != 3 ) error->all (FLERR," Incorrect args for pair coefficients" );
177
177
178
178
int ilo,ihi,jlo,jhi;
179
- force-> bounds (FLERR,arg[0 ],atom->ntypes ,ilo,ihi);
180
- force-> bounds (FLERR,arg[1 ],atom->ntypes ,jlo,jhi);
179
+ utils:: bounds (FLERR,arg[0 ],1 , atom->ntypes ,ilo,ihi,error );
180
+ utils:: bounds (FLERR,arg[1 ],1 , atom->ntypes ,jlo,jhi,error );
181
181
182
- maxCutoffRadius = force-> numeric (FLERR,arg[2 ]);
182
+ maxCutoffRadius = utils:: numeric (FLERR,arg[2 ], false ,lmp );
183
183
184
184
// TODO: Check how this flag is set.
185
185
int count = 0 ;
0 commit comments