We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a30e2a commit d12454dCopy full SHA for d12454d
source/lib/src/NNPInter.cc
@@ -1696,12 +1696,8 @@ compute_relative_std_f (vector<VALUETYPE> &std,
1696
const vector<VALUETYPE> &avg,
1697
const VALUETYPE eps)
1698
{
1699
- unsigned ndof = std.size();
1700
- unsigned nloc = ndof;
1701
- assert (nloc == ndof);
1702
- rel_std.resize(nloc);
1703
- fill(rel_std.begin(), rel_std.end(), VALUETYPE(0.));
1704
- for (unsigned ii = 0; ii < nlocal; ++ii){
+ unsigned nloc = std.size();
+ for (unsigned ii = 0; ii < nloc; ++ii){
1705
const VALUETYPE * tmp_avg = &(avg[ii*3]);
1706
VALUETYPE vdiff[3];
1707
vdiff[0] = tmp_avg[0];
0 commit comments