diff --git a/src/COLLOID/pair_brownian.cpp b/src/COLLOID/pair_brownian.cpp index db58bc7bfe..6773900e44 100644 --- a/src/COLLOID/pair_brownian.cpp +++ b/src/COLLOID/pair_brownian.cpp @@ -54,7 +54,7 @@ PairBrownian::PairBrownian(LAMMPS *lmp) : Pair(lmp) PairBrownian::~PairBrownian() { - if(copymode) return; + if (copymode) return; if (allocated) { memory->destroy(setflag); diff --git a/src/COLLOID/pair_lubricate.cpp b/src/COLLOID/pair_lubricate.cpp index d758ac8840..14e587e5f8 100644 --- a/src/COLLOID/pair_lubricate.cpp +++ b/src/COLLOID/pair_lubricate.cpp @@ -56,8 +56,6 @@ PairLubricate::PairLubricate(LAMMPS *lmp) : Pair(lmp) PairLubricate::~PairLubricate() { - if (copymode) return; - if (allocated) { memory->destroy(setflag); memory->destroy(cutsq); diff --git a/src/COLLOID/pair_lubricate.h b/src/COLLOID/pair_lubricate.h index 6956293dbc..8097eb76dd 100644 --- a/src/COLLOID/pair_lubricate.h +++ b/src/COLLOID/pair_lubricate.h @@ -56,7 +56,7 @@ class PairLubricate : public Pair { double R0, RT0, RS0; double **cut_inner, **cut; - virtual void allocate(); + void allocate(); }; } // namespace LAMMPS_NS