Unverified Commit a4a1f7e8 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

more IWYU cleanup

parent 047c14d1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -31,9 +31,7 @@
#include "pair.h"
#include "pair_hybrid.h"
#include "pair_hybrid_overlay.h"
#include "update.h"

#include <cctype>
#include <cstring>

using namespace LAMMPS_NS;
+24 −18
Original line number Diff line number Diff line
@@ -19,6 +19,12 @@
#include <map>

namespace LAMMPS_NS {
  class Angle;
  class Bond;
  class Dihedral;
  class Improper;
  class KSpace;
  class Pair;

class Force : protected Pointers {
 public:
@@ -47,23 +53,23 @@ class Force : protected Pointers {

  int newton,newton_pair,newton_bond;   // Newton's 3rd law settings

  class Pair *pair;
  Pair *pair;
  char *pair_style;
  char *pair_restart;

  class Bond *bond;
  Bond *bond;
  char *bond_style;

  class Angle *angle;
  Angle *angle;
  char *angle_style;

  class Dihedral *dihedral;
  Dihedral *dihedral;
  char *dihedral_style;

  class Improper *improper;
  Improper *improper;
  char *improper_style;

  class KSpace *kspace;
  KSpace *kspace;
  char *kspace_style;

  typedef Pair *(*PairCreator)(LAMMPS *);
@@ -102,29 +108,29 @@ class Force : protected Pointers {
  void setup();

  void create_pair(const std::string &, int);
  class Pair *new_pair(const std::string &, int, int &);
  class Pair *pair_match(const std::string &, int, int nsub=0);
  Pair *new_pair(const std::string &, int, int &);
  Pair *pair_match(const std::string &, int, int nsub=0);
  char *pair_match_ptr(Pair *);

  void create_bond(const std::string &, int);
  class Bond *new_bond(const std::string &, int, int &);
  class Bond *bond_match(const std::string &);
  Bond *new_bond(const std::string &, int, int &);
  Bond *bond_match(const std::string &);

  void create_angle(const std::string &, int);
  class Angle *new_angle(const std::string &, int, int &);
  class Angle *angle_match(const std::string &);
  Angle *new_angle(const std::string &, int, int &);
  Angle *angle_match(const std::string &);

  void create_dihedral(const std::string &, int);
  class Dihedral *new_dihedral(const std::string &, int, int &);
  class Dihedral *dihedral_match(const std::string &);
  Dihedral *new_dihedral(const std::string &, int, int &);
  Dihedral *dihedral_match(const std::string &);

  void create_improper(const std::string &, int);
  class Improper *new_improper(const std::string &, int, int &);
  class Improper *improper_match(const std::string &);
  Improper *new_improper(const std::string &, int, int &);
  Improper *improper_match(const std::string &);

  void create_kspace(const std::string &, int);
  class KSpace *new_kspace(const std::string &, int, int &);
  class KSpace *kspace_match(const std::string &, int);
  KSpace *new_kspace(const std::string &, int, int &);
  KSpace *kspace_match(const std::string &, int);

  void store_style(char *&, const std::string &, int);
  void set_special(int, char **);
+0 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@

#include "atom.h"
#include "error.h"
#include "force.h"
#include "group.h"

using namespace LAMMPS_NS;
+0 −2
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@
#include "dihedral.h"
#include "domain.h"
#include "error.h"
#include "fix.h"
#include "force.h"
#include "group.h"
#include "improper.h"
@@ -44,7 +43,6 @@
#include "update.h"
#include "variable.h"

#include <cstdlib>
#include <cstring>
#include <errno.h>
#include <cctype>
+16 −16
Original line number Diff line number Diff line
@@ -20,32 +20,32 @@
------------------------------------------------------------------------- */

#include "min.h"
#include <mpi.h>
#include <cmath>
#include <cstring>

#include "angle.h"
#include "atom.h"
#include "atom_vec.h"
#include "domain.h"
#include "bond.h"
#include "comm.h"
#include "update.h"
#include "modify.h"
#include "fix_minimize.h"
#include "compute.h"
#include "neighbor.h"
#include "force.h"
#include "pair.h"
#include "bond.h"
#include "angle.h"
#include "dihedral.h"
#include "domain.h"
#include "error.h"
#include "fix_minimize.h"
#include "force.h"
#include "improper.h"
#include "kspace.h"
#include "math_const.h"
#include "memory.h"
#include "modify.h"
#include "neighbor.h"
#include "output.h"
#include "pair.h"
#include "thermo.h"
#include "timer.h"
#include "math_const.h"
#include "memory.h"
#include "error.h"
#include "fmt/format.h"
#include "update.h"

#include <cmath>
#include <cstring>

using namespace LAMMPS_NS;
using namespace MathConst;
Loading