mirror of https://github.com/lammps/lammps.git
MC/fix_bond_break: Use TAGINT_FORMAT where appropriate
This commit is contained in:
parent
f73ccc3025
commit
da77dde04d
|
@ -800,26 +800,27 @@ void FixBondBreak::print_bb()
|
|||
for (int i = 0; i < atom->nlocal; i++) {
|
||||
printf("TAG " TAGINT_FORMAT ": %d nbonds: ",atom->tag[i],atom->num_bond[i]);
|
||||
for (int j = 0; j < atom->num_bond[i]; j++) {
|
||||
printf(" %d",atom->bond_atom[i][j]);
|
||||
printf(" " TAGINT_FORMAT, atom->bond_atom[i][j]);
|
||||
}
|
||||
printf("\n");
|
||||
printf("TAG " TAGINT_FORMAT ": %d nangles: ",atom->tag[i],atom->num_angle[i]);
|
||||
for (int j = 0; j < atom->num_angle[i]; j++) {
|
||||
printf(" %d %d %d,",atom->angle_atom1[i][j],
|
||||
atom->angle_atom2[i][j],atom->angle_atom3[i][j]);
|
||||
printf(" " TAGINT_FORMAT " " TAGINT_FORMAT " " TAGINT_FORMAT ",",
|
||||
atom->angle_atom1[i][j],atom->angle_atom2[i][j],
|
||||
atom->angle_atom3[i][j]);
|
||||
}
|
||||
printf("\n");
|
||||
printf("TAG " TAGINT_FORMAT ": %d ndihedrals: ",atom->tag[i],atom->num_dihedral[i]);
|
||||
for (int j = 0; j < atom->num_dihedral[i]; j++) {
|
||||
printf(" %d %d %d %d,",atom->dihedral_atom1[i][j],
|
||||
atom->dihedral_atom2[i][j],atom->dihedral_atom3[i][j],
|
||||
atom->dihedral_atom4[i][j]);
|
||||
printf(" " TAGINT_FORMAT " " TAGINT_FORMAT " " TAGINT_FORMAT " " TAGINT_FORMAT ",",
|
||||
atom->dihedral_atom1[i][j],atom->dihedral_atom2[i][j],
|
||||
atom->dihedral_atom3[i][j],atom->dihedral_atom4[i][j]);
|
||||
}
|
||||
printf("\n");
|
||||
printf("TAG " TAGINT_FORMAT ": %d %d %d nspecial: ",atom->tag[i],
|
||||
atom->nspecial[i][0],atom->nspecial[i][1],atom->nspecial[i][2]);
|
||||
for (int j = 0; j < atom->nspecial[i][2]; j++) {
|
||||
printf(" %d",atom->special[i][j]);
|
||||
printf(" " TAGINT_FORMAT, atom->special[i][j]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
@ -830,7 +831,7 @@ void FixBondBreak::print_bb()
|
|||
void FixBondBreak::print_copy(const char *str, tagint m,
|
||||
int n1, int n2, int n3, int *v)
|
||||
{
|
||||
printf("%s %i: %d %d %d nspecial: ",str,m,n1,n2,n3);
|
||||
printf("%s " TAGINT_FORMAT ": %d %d %d nspecial: ",str,m,n1,n2,n3);
|
||||
for (int j = 0; j < n3; j++) printf(" %d",v[j]);
|
||||
printf("\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue