apply include statement updates suggested by running IWYU

This commit is contained in:
Axel Kohlmeyer
2022-02-13 18:21:03 -05:00
parent 1307371942
commit 3bc91386a0
86 changed files with 48 additions and 132 deletions

View File

@ -31,7 +31,6 @@
#include "update.h" #include "update.h"
#include <cmath> #include <cmath>
#include <ctime>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -17,9 +17,7 @@
#include "comm.h" #include "comm.h"
#include "error.h" #include "error.h"
#include "force.h" #include "force.h"
#include "group.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
@ -27,7 +25,6 @@
#include "update.h" #include "update.h"
#include "math_const.h" #include "math_const.h"
#include <cmath>
#include <cstring> #include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -35,6 +35,7 @@
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -31,6 +31,7 @@
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -33,8 +33,6 @@
#include "respa.h" #include "respa.h"
#include "update.h" #include "update.h"
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -32,6 +32,7 @@
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -21,7 +21,6 @@ FixStyle(ttm,FixTTM);
#define LMP_FIX_TTM_H #define LMP_FIX_TTM_H
#include "fix.h" #include "fix.h"
#include <exception>
namespace LAMMPS_NS { namespace LAMMPS_NS {

View File

@ -31,11 +31,11 @@
#include "random_mars.h" #include "random_mars.h"
#include "respa.h" #include "respa.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include "update.h" #include "update.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -21,7 +21,6 @@ FixStyle(ttm/mod,FixTTMMod);
#define LMP_FIX_TTM_MOD_H #define LMP_FIX_TTM_MOD_H
#include "fix.h" #include "fix.h"
#include <exception>
namespace LAMMPS_NS { namespace LAMMPS_NS {

View File

@ -17,7 +17,6 @@
#include "comm.h" #include "comm.h"
#include "error.h" #include "error.h"
#include "force.h" #include "force.h"
#include "math_const.h"
#include "memory.h" #include "memory.h"
#include "neighbor.h" #include "neighbor.h"
#include "update.h" #include "update.h"

View File

@ -24,8 +24,6 @@
#include "math_const.h" #include "math_const.h"
#include "memory.h" #include "memory.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neighbor.h"
#include "update.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -19,16 +19,11 @@
#include "pair_nm_cut_split.h" #include "pair_nm_cut_split.h"
#include "atom.h" #include "atom.h"
#include "comm.h"
#include "error.h"
#include "force.h" #include "force.h"
#include "math_const.h"
#include "math_special.h" #include "math_special.h"
#include "memory.h"
#include "neigh_list.h" #include "neigh_list.h"
#include <cmath> #include <cmath>
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using MathSpecial::powint; using MathSpecial::powint;

View File

@ -34,7 +34,6 @@
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -31,7 +31,6 @@
#include "neighbor.h" #include "neighbor.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -33,7 +33,6 @@
#include "neighbor.h" #include "neighbor.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -29,7 +29,6 @@
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -19,20 +19,18 @@
#include "pair_adp.h" #include "pair_adp.h"
#include <cmath>
#include <cstring>
#include "atom.h" #include "atom.h"
#include "force.h"
#include "comm.h" #include "comm.h"
#include "error.h"
#include "force.h"
#include "memory.h"
#include "neighbor.h" #include "neighbor.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "memory.h"
#include "error.h"
#include "tokenizer.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include <cmath>
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -50,7 +50,6 @@
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tabular_function.h" #include "tabular_function.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -35,7 +35,6 @@
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -18,20 +18,18 @@
#include "pair_eam.h" #include "pair_eam.h"
#include <cmath>
#include <cstring>
#include "atom.h" #include "atom.h"
#include "force.h"
#include "comm.h" #include "comm.h"
#include "error.h"
#include "force.h"
#include "memory.h"
#include "neighbor.h" #include "neighbor.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "memory.h" #include "potential_file_reader.h"
#include "error.h"
#include "update.h" #include "update.h"
#include "tokenizer.h" #include <cmath>
#include "potential_file_reader.h" #include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -23,7 +23,6 @@
#include "error.h" #include "error.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cstring> #include <cstring>

View File

@ -29,7 +29,6 @@
#include "tokenizer.h" #include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -23,7 +23,6 @@
#include "error.h" #include "error.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cstring> #include <cstring>

View File

@ -35,6 +35,7 @@
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception>
#include <limits> #include <limits>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -34,6 +34,7 @@
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace MathExtra; using namespace MathExtra;

View File

@ -30,7 +30,6 @@
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -24,7 +24,6 @@
#include "math_const.h" #include "math_const.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include "update.h" #include "update.h"
#include <cmath> #include <cmath>

View File

@ -19,21 +19,19 @@
#include "pair_nb3b_harmonic.h" #include "pair_nb3b_harmonic.h"
#include <cmath>
#include <cstring>
#include "atom.h" #include "atom.h"
#include "neighbor.h"
#include "neigh_request.h"
#include "force.h"
#include "comm.h" #include "comm.h"
#include "neigh_list.h"
#include "memory.h"
#include "error.h" #include "error.h"
#include "force.h"
#include "tokenizer.h" #include "memory.h"
#include "neigh_list.h"
#include "neigh_request.h"
#include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include <cmath>
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
#define DELTA 4 #define DELTA 4

View File

@ -33,7 +33,6 @@
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tabular_function.h" #include "tabular_function.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>

View File

@ -27,7 +27,6 @@
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -32,7 +32,6 @@
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "suffix.h" #include "suffix.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -26,7 +26,6 @@
#include "math_special.h" #include "math_special.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -22,7 +22,6 @@
#include "error.h" #include "error.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -32,7 +32,6 @@
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -25,7 +25,6 @@
#include "math_special.h" #include "math_special.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include "update.h" #include "update.h"
#include <cmath> #include <cmath>

View File

@ -19,9 +19,6 @@
#include "pair_vashishta.h" #include "pair_vashishta.h"
#include <cmath>
#include <cstring>
#include "atom.h" #include "atom.h"
#include "comm.h" #include "comm.h"
#include "error.h" #include "error.h"
@ -30,10 +27,11 @@
#include "neighbor.h" #include "neighbor.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neigh_request.h" #include "neigh_request.h"
#include "tokenizer.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include <cmath>
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
#define DELTA 4 #define DELTA 4

View File

@ -32,6 +32,8 @@
#include "random_park.h" #include "random_park.h"
#include "update.h" #include "update.h"
#include <cmath>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -14,8 +14,6 @@
#ifndef LMP_MEAM_H #ifndef LMP_MEAM_H
#define LMP_MEAM_H #define LMP_MEAM_H
#include "math_const.h" // IWYU pragma: export
#include <cmath> #include <cmath>
#include <string> #include <string>

View File

@ -20,7 +20,7 @@
#include <cmath> #include <cmath>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace MathConst; using MathConst::MY_PI;
// do a sanity check on index parameters // do a sanity check on index parameters
void void

View File

@ -28,7 +28,6 @@
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cstring> #include <cstring>
#include <memory> #include <memory>

View File

@ -29,7 +29,6 @@
#include "neigh_list.h" #include "neigh_list.h"
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include "tokenizer.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include <cmath> #include <cmath>

View File

@ -24,12 +24,11 @@
#include "force.h" #include "force.h"
#include "memory.h" #include "memory.h"
#include "text_file_reader.h" #include "text_file_reader.h"
#include "tokenizer.h"
#include <cstring> #include <cstring>
#include <cmath> #include <cmath>
#include <exception>
#include <map> #include <map>
#include <vector>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -17,7 +17,7 @@
------------------------------------------------------------------------- */ ------------------------------------------------------------------------- */
#include "mliap_model_linear.h" #include "mliap_model_linear.h"
#include "pair_mliap.h"
#include "mliap_data.h" #include "mliap_data.h"
#include "error.h" #include "error.h"

View File

@ -19,7 +19,6 @@
#include "mliap_model_nn.h" #include "mliap_model_nn.h"
#include "mliap_data.h" #include "mliap_data.h"
#include "pair_mliap.h"
#include "comm.h" #include "comm.h"
#include "error.h" #include "error.h"

View File

@ -39,11 +39,11 @@
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "respa.h" #include "respa.h"
#include "tokenizer.h"
#include "update.h" #include "update.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -23,7 +23,6 @@
#include "error.h" #include "error.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cstring> #include <cstring>

View File

@ -23,7 +23,6 @@
#include "error.h" #include "error.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include <cstring> #include <cstring>

View File

@ -20,6 +20,8 @@
#include "neigh_list.h" #include "neigh_list.h"
#include "suffix.h" #include "suffix.h"
#include <cmath>
#include "omp_compat.h" #include "omp_compat.h"
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -23,7 +23,6 @@
#include "lattice.h" #include "lattice.h"
#include "math_const.h" #include "math_const.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neighbor.h" #include "neighbor.h"
#include "suffix.h" #include "suffix.h"

View File

@ -22,7 +22,6 @@
#include "force.h" #include "force.h"
#include "lattice.h" #include "lattice.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "suffix.h" #include "suffix.h"

View File

@ -25,7 +25,6 @@
#include "math_special.h" #include "math_special.h"
#include "memory.h" #include "memory.h"
#include "potential_file_reader.h" #include "potential_file_reader.h"
#include "tokenizer.h"
#include "update.h" #include "update.h"
#include <cmath> #include <cmath>

View File

@ -28,7 +28,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "fix_omp.h"
#include "pair_reaxff_omp.h" #include "pair_reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"

View File

@ -27,7 +27,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "fix_omp.h"
#include "pair_reaxff_omp.h" #include "pair_reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"

View File

@ -30,7 +30,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "error.h" #include "error.h"
#include "fix_omp.h"
#include "pair_reaxff_omp.h" #include "pair_reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"

View File

@ -29,7 +29,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "fix_omp.h"
#include "pair_reaxff_omp.h" #include "pair_reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"

View File

@ -29,8 +29,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"
#include "error.h"
#include <mpi.h> #include <mpi.h>
#include <cstdlib> #include <cstdlib>

View File

@ -29,7 +29,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "fix_omp.h"
#include "pair_reaxff_omp.h" #include "pair_reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"

View File

@ -29,7 +29,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "fix_omp.h"
#include "pair_reaxff_omp.h" #include "pair_reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"

View File

@ -30,7 +30,6 @@
#include "reaxff_omp.h" #include "reaxff_omp.h"
#include "error.h" #include "error.h"
#include "fix_omp.h"
#include "pair_reaxff_omp.h" #include "pair_reaxff_omp.h"
#include "reaxff_api.h" #include "reaxff_api.h"

View File

@ -26,8 +26,6 @@
#include "modify.h" #include "modify.h"
#include "update.h" #include "update.h"
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -27,8 +27,6 @@
#include "pair.h" #include "pair.h"
#include "update.h" #include "update.h"
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -27,8 +27,6 @@
#include "modify.h" #include "modify.h"
#include "update.h" #include "update.h"
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -20,7 +20,6 @@
#include "lattice.h" #include "lattice.h"
#include "memory.h" #include "memory.h"
#include "modify.h" #include "modify.h"
#include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
#include <cstring> #include <cstring>

View File

@ -28,7 +28,6 @@
#include "math_const.h" #include "math_const.h"
#include "math_special.h" #include "math_special.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neighbor.h" #include "neighbor.h"

View File

@ -27,7 +27,6 @@
#include "lattice.h" #include "lattice.h"
#include "math_const.h" #include "math_const.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neighbor.h" #include "neighbor.h"

View File

@ -26,9 +26,7 @@
#include "force.h" #include "force.h"
#include "lattice.h" #include "lattice.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neighbor.h"
#include <cfloat> #include <cfloat>
#include <cmath> #include <cmath>

View File

@ -26,7 +26,6 @@
#include "force.h" #include "force.h"
#include "lattice.h" #include "lattice.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neighbor.h" #include "neighbor.h"
#include "update.h" #include "update.h"

View File

@ -22,7 +22,6 @@
#include "atom.h" #include "atom.h"
#include "bond.h" #include "bond.h"
#include "comm.h" #include "comm.h"
#include "compute.h"
#include "dihedral.h" #include "dihedral.h"
#include "domain.h" #include "domain.h"
#include "error.h" #include "error.h"

View File

@ -22,20 +22,14 @@
#include "citeme.h" #include "citeme.h"
#include "comm.h" #include "comm.h"
#include "error.h" #include "error.h"
#include "fix_efield.h"
#include "force.h" #include "force.h"
#include "group.h"
#include "memory.h" #include "memory.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neigh_request.h"
#include "neighbor.h"
#include "pair.h" #include "pair.h"
#include "pair_reaxff.h" #include "pair_reaxff.h"
#include "reaxff_api.h" #include "reaxff_api.h"
#include "respa.h"
#include "text_file_reader.h" #include "text_file_reader.h"
#include "update.h" #include "update.h"
#include "utils.h"
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -30,6 +30,7 @@
#include "force.h" #include "force.h"
#include "group.h" #include "group.h"
#include "memory.h" #include "memory.h"
#include "modify.h"
#include "neigh_list.h" #include "neigh_list.h"
#include "neigh_request.h" #include "neigh_request.h"
#include "neighbor.h" #include "neighbor.h"
@ -45,7 +46,6 @@
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <exception> #include <exception>
#include <string>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -28,8 +28,6 @@
#include "pair_reaxff.h" #include "pair_reaxff.h"
#include "reaxff_api.h" #include "reaxff_api.h"
#include <cstring>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;
using namespace ReaxFF; using namespace ReaxFF;

View File

@ -34,6 +34,7 @@
#include "reaxff_defs.h" #include "reaxff_defs.h"
#include <cstring> #include <cstring>
#include <exception>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;

View File

@ -14,7 +14,7 @@
#ifndef LMP_COMMAND_H #ifndef LMP_COMMAND_H
#define LMP_COMMAND_H #define LMP_COMMAND_H
#include "pointers.h" #include "pointers.h" // IWYU pragma: keep
namespace LAMMPS_NS { namespace LAMMPS_NS {

View File

@ -14,9 +14,7 @@
#include "fix_dt_reset.h" #include "fix_dt_reset.h"
#include "atom.h" #include "atom.h"
#include "comm.h"
#include "domain.h" #include "domain.h"
#include "dump.h"
#include "error.h" #include "error.h"
#include "fix.h" #include "fix.h"
#include "force.h" #include "force.h"

View File

@ -40,7 +40,6 @@
#include "pair.h" #include "pair.h"
#include "pair_hybrid.h" #include "pair_hybrid.h"
#include "region.h" #include "region.h"
#include "text_file_reader.h"
#include "update.h" #include "update.h"
#include "variable.h" #include "variable.h"
#include "fmt/chrono.h" #include "fmt/chrono.h"
@ -49,7 +48,6 @@
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <ctime> #include <ctime>
#include <exception>
#include <map> #include <map>
#ifdef _WIN32 #ifdef _WIN32
@ -62,7 +60,6 @@
#include <psapi.h> #include <psapi.h>
#else #else
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/utsname.h>
#endif #endif
#if defined(__linux__) #if defined(__linux__)

View File

@ -50,7 +50,6 @@
#include <cstring> #include <cstring>
#include <cerrno> #include <cerrno>
#include <cctype> #include <cctype>
#include <sys/stat.h>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -14,7 +14,7 @@
#ifndef LMP_NBIN_H #ifndef LMP_NBIN_H
#define LMP_NBIN_H #define LMP_NBIN_H
#include "pointers.h" #include "pointers.h" // IWYU pragma: keep
namespace LAMMPS_NS { namespace LAMMPS_NS {

View File

@ -14,7 +14,7 @@
#ifndef LMP_NPAIR_H #ifndef LMP_NPAIR_H
#define LMP_NPAIR_H #define LMP_NPAIR_H
#include "pointers.h" #include "pointers.h" // IWYU pragma: keep
namespace LAMMPS_NS { namespace LAMMPS_NS {

View File

@ -14,7 +14,7 @@
#ifndef LMP_NSTENCIL_H #ifndef LMP_NSTENCIL_H
#define LMP_NSTENCIL_H #define LMP_NSTENCIL_H
#include "pointers.h" #include "pointers.h" // IWYU pragma: keep
namespace LAMMPS_NS { namespace LAMMPS_NS {

View File

@ -14,7 +14,7 @@
#ifndef LMP_NTOPO_H #ifndef LMP_NTOPO_H
#define LMP_NTOPO_H #define LMP_NTOPO_H
#include "pointers.h" #include "pointers.h" // IWYU pragma: keep
namespace LAMMPS_NS { namespace LAMMPS_NS {

View File

@ -19,9 +19,8 @@
#include "text_file_reader.h" #include "text_file_reader.h"
#include "utils.h" #include "utils.h"
#if HAVE_MPI
#include <mpi.h> #include <mpi.h>
#endif #include <exception>
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
// include system headers and tweak system settings // include system headers and tweak system settings
@ -50,7 +49,6 @@
#include <dlfcn.h> #include <dlfcn.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <unistd.h> #include <unistd.h>

View File

@ -18,6 +18,7 @@
#include "lmptype.h" #include "lmptype.h"
#include <cstdio>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -19,7 +19,7 @@
#define LMP_POTENTIAL_FILE_READER_H #define LMP_POTENTIAL_FILE_READER_H
#include "pointers.h" // IWYU pragma: export #include "pointers.h" // IWYU pragma: export
#include "tokenizer.h" #include "tokenizer.h" // IWYU pragma: export
namespace LAMMPS_NS { namespace LAMMPS_NS {
class TextFileReader; class TextFileReader;

View File

@ -40,7 +40,6 @@
#include <cctype> #include <cctype>
#include <cstring> #include <cstring>
#include <string>
#include <unordered_set> #include <unordered_set>
using namespace LAMMPS_NS; using namespace LAMMPS_NS;

View File

@ -22,11 +22,9 @@
#include "memory.h" #include "memory.h"
#include "modify.h" #include "modify.h"
#include "text_file_reader.h" #include "text_file_reader.h"
#include "tokenizer.h"
#include "update.h" #include "update.h"
#include "universe.h" #include "universe.h"
#include <algorithm>
#include <cctype> #include <cctype>
#include <cerrno> #include <cerrno>
#include <cstring> #include <cstring>

View File

@ -29,7 +29,6 @@
// g++ -g -DLAMMPS_BIGBIG binarytxt.o -o binary2txt // g++ -g -DLAMMPS_BIGBIG binarytxt.o -o binary2txt
// again -DLAMMPS_SMALLBIG is the default // again -DLAMMPS_SMALLBIG is the default
#include <cstdint>
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#include <cinttypes> #include <cinttypes>