enable and apply clang-format

This commit is contained in:
Axel Kohlmeyer
2022-05-22 03:29:33 -04:00
parent b407b2f239
commit 9a973e67fa
23 changed files with 196 additions and 267 deletions

View File

@ -1,4 +1,3 @@
// clang-format off
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
@ -34,17 +33,14 @@ void BondDeprecated::settings(int, char **)
// hybrid substyles are created in BondHybrid::settings(), so when this is
// called, our style was just added at the end of the list of substyles
if (utils::strmatch(my_style,"^hybrid")) {
if (utils::strmatch(my_style, "^hybrid")) {
auto hybrid = dynamic_cast<BondHybrid *>(force->bond);
my_style = hybrid->keywords[hybrid->nstyles];
}
if (my_style == "DEPRECATED") {
if (lmp->comm->me == 0)
utils::logmesg(lmp,"\nBond style 'DEPRECATED' is a dummy style\n\n");
if (lmp->comm->me == 0) utils::logmesg(lmp, "\nBond style 'DEPRECATED' is a dummy style\n\n");
return;
}
error->all(FLERR,"This bond style is no longer available");
error->all(FLERR, "This bond style is no longer available");
}