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
@ -13,18 +12,17 @@
------------------------------------------------------------------------- */
#include "compute_com.h"
#include "update.h"
#include "group.h"
#include "error.h"
#include "group.h"
#include "update.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
ComputeCOM::ComputeCOM(LAMMPS *lmp, int narg, char **arg) :
Compute(lmp, narg, arg)
ComputeCOM::ComputeCOM(LAMMPS *lmp, int narg, char **arg) : Compute(lmp, narg, arg)
{
if (narg != 3) error->all(FLERR,"Illegal compute com command");
if (narg != 3) error->all(FLERR, "Illegal compute com command");
vector_flag = 1;
size_vector = 3;
@ -37,7 +35,7 @@ ComputeCOM::ComputeCOM(LAMMPS *lmp, int narg, char **arg) :
ComputeCOM::~ComputeCOM()
{
delete [] vector;
delete[] vector;
}
/* ---------------------------------------------------------------------- */
@ -54,5 +52,5 @@ void ComputeCOM::compute_vector()
invoked_vector = update->ntimestep;
if (group->dynamic[igroup]) masstotal = group->mass(igroup);
group->xcm(igroup,masstotal,vector);
group->xcm(igroup, masstotal, vector);
}