enable and apply clang-format
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user