apply clang-format

This commit is contained in:
Axel Kohlmeyer
2025-04-22 10:50:24 -04:00
parent 25307b049c
commit bbc025632d
2 changed files with 34 additions and 35 deletions

View File

@ -532,7 +532,6 @@ void PairLJPirani::compute_outer(int eflag, int vflag)
if (eflag) {
r = sqrt(rsq);
rx = r / rm[itype][jtype];
@ -841,7 +840,7 @@ void PairLJPirani::write_data_all(FILE *fp)
/* ---------------------------------------------------------------------- */
double PairLJPirani::single(int /*i*/, int /*j*/, int itype, int jtype, double rsq,
double /*factor_coul*/, double factor_lj, double &fforce)
double /*factor_coul*/, double factor_lj, double &fforce)
{
double r, rx, n_x, filj1, filj2, filj3, filj4, filj5, filj6, forceilj;
double ilj1, ilj2;

View File

@ -17,44 +17,44 @@ PairStyle(lj/pirani,PairLJPirani);
// clang-format on
#else
#ifndef LMP_PAIR_LJ_PIRANI
#define LMP_PAIR_LJ_PIRANI
#ifndef LMP_PAIR_LJ_PIRANI_H
#define LMP_PAIR_LJ_PIRANI_H
#include "pair.h"
namespace LAMMPS_NS {
class PairLJPirani : public Pair {
public:
PairLJPirani(class LAMMPS *);
virtual ~PairLJPirani() override;
void compute(int, int) override;
void settings(int, char **) override;
void coeff(int, char **) override;
void init_style() override;
double init_one(int, int) override;
void write_restart(FILE *) override;
void read_restart(FILE *) override;
void write_restart_settings(FILE *) override;
void read_restart_settings(FILE *) override;
void write_data(FILE *) override;
void write_data_all(FILE *) override;
double single(int, int, int, int, double, double, double, double &) override;
void *extract(const char *, int &) override;
void compute_inner() override;
void compute_middle() override;
void compute_outer(int, int) override;
class PairLJPirani : public Pair {
public:
PairLJPirani(class LAMMPS *);
virtual ~PairLJPirani() override;
void compute(int, int) override;
void settings(int, char **) override;
void coeff(int, char **) override;
void init_style() override;
double init_one(int, int) override;
void write_restart(FILE *) override;
void read_restart(FILE *) override;
void write_restart_settings(FILE *) override;
void read_restart_settings(FILE *) override;
void write_data(FILE *) override;
void write_data_all(FILE *) override;
double single(int, int, int, int, double, double, double, double &) override;
void *extract(const char *, int &) override;
void compute_inner() override;
void compute_middle() override;
void compute_outer(int, int) override;
protected:
double cut_global;
double **cut;
double **alpha,**beta,**gamma,**rm,**epsilon;
double **offset;
double *cut_respa;
virtual void allocate();
};
protected:
double cut_global;
double **cut;
double **alpha, **beta, **gamma, **rm, **epsilon;
double **offset;
double *cut_respa;
virtual void allocate();
};
} // namespace LAMMPS_NS
} // namespace LAMMPS_NS
#endif
#endif
#endif
#endif