diff --git a/doc/src/fix_deform.rst b/doc/src/fix_deform.rst index 84670b37a8..ee010f5645 100644 --- a/doc/src/fix_deform.rst +++ b/doc/src/fix_deform.rst @@ -597,4 +597,4 @@ Related commands Default """"""" -The option defaults are remap = x, flip = yes, units = lattice +The option defaults are remap = x, flip = yes, and units = lattice. diff --git a/src/EXTRA-FIX/fix_deform_pressure.cpp b/src/EXTRA-FIX/fix_deform_pressure.cpp index 666ca5f2af..c76550b40f 100644 --- a/src/EXTRA-FIX/fix_deform_pressure.cpp +++ b/src/EXTRA-FIX/fix_deform_pressure.cpp @@ -2,7 +2,7 @@ /* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator https://www.lammps.org/, Sandia National Laboratories - Steve Plimpton, sjplimp@sandia.gov + LAMMPS development team: developers@lammps.org Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/src/EXTRA-FIX/fix_deform_pressure.h b/src/EXTRA-FIX/fix_deform_pressure.h index d3a05d949d..7e4ad6e35a 100644 --- a/src/EXTRA-FIX/fix_deform_pressure.h +++ b/src/EXTRA-FIX/fix_deform_pressure.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator https://www.lammps.org/, Sandia National Laboratories - Steve Plimpton, sjplimp@sandia.gov + LAMMPS development team: developers@lammps.org Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains @@ -35,7 +35,7 @@ class FixDeformPressure : public FixDeform { protected: int pcouple, dimension; - double *h_rate, *h_ratelo, max_h_rate; + double max_h_rate; int strain_flag; // 1 if strain-based option is used, 0 if not int pressure_flag; // 1 if pressure tensor used, 0 if not int volume_flag; // 1 if VOLUME option is used, 0 if not diff --git a/src/fix_deform.cpp b/src/fix_deform.cpp index d78e28ef2f..cf45a12f5d 100644 --- a/src/fix_deform.cpp +++ b/src/fix_deform.cpp @@ -13,7 +13,7 @@ ------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- - Contributing author: Pieter in 't Veld (SNL), Joel Clemmer (SNL) + Contributing author: Pieter in 't Veld (SNL) ------------------------------------------------------------------------- */ #include "fix_deform.h" @@ -759,7 +759,7 @@ void FixDeform::apply_deformation() if (mask[i] & groupbit) domain->x2lamda(x[i], x[i]); - for (auto ifix : rfix) + for (auto &ifix : rfix) ifix->deform(0); } @@ -798,7 +798,7 @@ void FixDeform::apply_deformation() if (mask[i] & groupbit) domain->lamda2x(x[i], x[i]); - for (auto ifix : rfix) + for (auto &ifix : rfix) ifix->deform(1); } }