Skip to content

Commit

Permalink
core: Header cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Sep 8, 2020
1 parent dbe96b0 commit c475c38
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 28 deletions.
1 change: 1 addition & 0 deletions src/core/bonded_interactions/thermalized_bond.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "bonded_interaction_data.hpp"
#include "communication.hpp"
#include "global.hpp"
#include "integrate.hpp"

int n_thermalized_bonds = 0;

Expand Down
1 change: 0 additions & 1 deletion src/core/bonded_interactions/thermalized_bond.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ extern int n_thermalized_bonds;

#include "Particle.hpp"
#include "bonded_interaction_data.hpp"
#include "integrate.hpp"
#include "random.hpp"
#include "thermostat.hpp"

Expand Down
4 changes: 1 addition & 3 deletions src/core/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "event.hpp"
#include "grid.hpp"
#include "grid_based_algorithms/lb_interface.hpp"
#include "integrate.hpp"
#include "nonbonded_interactions/nonbonded_interaction_data.hpp"
#include "npt.hpp"
#include "object-in-fluid/oif_global_forces.hpp"
Expand All @@ -45,9 +46,6 @@
#include <unordered_map>

extern double force_cap;
extern LangevinThermostat langevin;
extern BrownianThermostat brownian;
extern IsotropicNptThermostat npt_iso;

namespace {

Expand Down
2 changes: 1 addition & 1 deletion src/core/grid_based_algorithms/lb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
#include "nonbonded_interactions/nonbonded_interaction_data.hpp"
#include "random.hpp"

#include "utils/u32_to_u64.hpp"
#include <utils/Counter.hpp>
#include <utils/index.hpp>
#include <utils/math/matrix_vector_product.hpp>
#include <utils/u32_to_u64.hpp>
#include <utils/uniform.hpp>
using Utils::get_linear_index;
#include <utils/constants.hpp>
Expand Down
20 changes: 7 additions & 13 deletions src/core/integrate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@
*/

#include "integrate.hpp"
#include "Particle.hpp"
#include "integrators/brownian_inline.hpp"
#include "integrators/steepest_descent.hpp"
#include "integrators/stokesian_dynamics_inline.hpp"
#include "integrators/velocity_verlet_inline.hpp"
#include "integrators/velocity_verlet_npt.hpp"

#include "ParticleRange.hpp"
#include "accumulators.hpp"
#include "bonded_interactions/bonded_interaction_data.hpp"
#include "bonded_interactions/thermalized_bond.hpp"
#include "cells.hpp"
#include "collision.hpp"
#include "communication.hpp"
Expand All @@ -51,19 +55,9 @@
#include "thermostat.hpp"
#include "virtual_sites.hpp"

#include "integrators/brownian_inline.hpp"
#include "integrators/steepest_descent.hpp"
#include "integrators/stokesian_dynamics_inline.hpp"
#include "integrators/velocity_verlet_inline.hpp"
#include "integrators/velocity_verlet_npt.hpp"

#include <profiler/profiler.hpp>
#include <utils/Vector.hpp>
#include <utils/constants.hpp>

#include <boost/range/algorithm/min_element.hpp>
#include <cmath>
#include <mpi.h>

#ifdef VALGRIND_INSTRUMENTATION
#include <callgrind.h>
Expand Down
5 changes: 2 additions & 3 deletions src/core/thermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@
*/
#include <boost/mpi.hpp>

#include <utils/u32_to_u64.hpp>

#include "bonded_interactions/thermalized_bond.hpp"
#include "communication.hpp"
#include "dpd.hpp"
#include "grid_based_algorithms/lb_interface.hpp"
#include "integrate.hpp"
#include "npt.hpp"
#include "thermostat.hpp"

#include <cstdint>

int thermo_switch = THERMO_OFF;
double temperature = 0.0;
bool thermo_virtual = true;
Expand Down
4 changes: 1 addition & 3 deletions src/core/thermostat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@

#include "config.hpp"

#include "Particle.hpp"
#include "random.hpp"
#include "rotation.hpp"

#include <utils/Counter.hpp>
#include <utils/Vector.hpp>

#include <boost/optional.hpp>
#include <cmath>
#include <tuple>
#include <cstdint>

/** \name Thermostat switches */
/*@{*/
Expand Down
1 change: 1 addition & 0 deletions src/core/thermostats/brownian_inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "Particle.hpp"
#include "particle_data.hpp"
#include "random.hpp"
#include "rotation.hpp"
#include "thermostat.hpp"

#include <utils/Vector.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/core/thermostats/langevin_inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "config.hpp"

#include "Particle.hpp"
#include "random.hpp"
#include "thermostat.hpp"

Expand Down
8 changes: 4 additions & 4 deletions src/core/unit_tests/thermostats_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#define BOOST_TEST_MODULE Thermostats test
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include <cmath>
#include <limits>

#include <utils/Vector.hpp>

#include "Particle.hpp"
#include "random_test.hpp"
Expand All @@ -34,7 +30,11 @@
#include "thermostats/langevin_inline.hpp"
#include "thermostats/npt_inline.hpp"

#include <utils/Vector.hpp>

#include <array>
#include <cmath>
#include <limits>

// multiply by 100 because BOOST_CHECK_CLOSE takes a percentage tolerance,
// and by 6 to account for error accumulation in thermostat functions
Expand Down

0 comments on commit c475c38

Please sign in to comment.