correctly report number of constrained bonds and angles
This commit is contained in:
@ -718,7 +718,6 @@ void FixDeposit::options(int narg, char **arg)
|
||||
error->all(FLERR,"Illegal fix deposit command");
|
||||
molfrac[nmol-1] = 1.0;
|
||||
iarg += nmol+1;
|
||||
|
||||
} else if (strcmp(arg[iarg],"rigid") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal fix deposit command");
|
||||
int n = strlen(arg[iarg+1]) + 1;
|
||||
|
||||
@ -2536,13 +2536,13 @@ void FixShake::stats()
|
||||
auto mesg = fmt::format("SHAKE stats (type/ave/delta/count) on step {}\n",
|
||||
update->ntimestep);
|
||||
for (i = 1; i < nb; i++) {
|
||||
const auto bcnt = b_count_all[i];
|
||||
const auto bcnt = b_count_all[i]/2;
|
||||
if (bcnt)
|
||||
mesg += fmt::format("{:>6d} {:<9.6} {:<11.6} {:>8d}\n",i,
|
||||
b_ave_all[i]/bcnt,b_max_all[i]-b_min_all[i],bcnt);
|
||||
}
|
||||
for (i = 1; i < na; i++) {
|
||||
const auto acnt = a_count_all[i];
|
||||
const auto acnt = a_count_all[i]/3;
|
||||
if (acnt)
|
||||
mesg += fmt::format("{:>6d} {:<9.6} {:<11.6} {:>8d}\n",i,
|
||||
a_ave_all[i]/acnt,a_max_all[i]-a_min_all[i],acnt);
|
||||
|
||||
Reference in New Issue
Block a user