Skip to content

Commit

Permalink
Header cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund committed Apr 11, 2024
1 parent a8b0e56 commit b7a218e
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "aux/timers.h"
#include "aux/table_2d.h"
#include "aux/equidistant_table.h"
#include <aux/sparsehistogram.h>
#include "aux/sparsehistogram.h"
#include <Eigen/SparseCore>
#include <limits>
#include <memory>
Expand Down
6 changes: 2 additions & 4 deletions src/aux/eigen_cerealisation.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
#ifndef EIGENCEREALISATION_HPP_
#define EIGENCEREALISATION_HPP_

#include "cereal/cereal.hpp"

#include "Eigen/Core"

#include <cereal/cereal.hpp>
#include <Eigen/Core>
#include <cstdint>

/**
Expand Down
1 change: 0 additions & 1 deletion src/aux/eigensupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <Eigen/Core>
#include <nlohmann/json.hpp>

#include "aux/eigen_cerealisation.h"

// Eigen<->JSON (de)serialization
Expand Down
2 changes: 1 addition & 1 deletion src/celllistimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <range/v3/view/transform.hpp>
#include "celllist.h"
#include "core.h"
#include "spdlog/spdlog.h"
#include <spdlog/spdlog.h>

namespace Faunus {

Expand Down
2 changes: 1 addition & 1 deletion src/externalpotential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "aux/eigensupport.h"
#include "functionparser.h"
#include "space.h"
#include "spdlog/spdlog.h"
#include <spdlog/spdlog.h>

namespace Faunus::Energy {

Expand Down
6 changes: 3 additions & 3 deletions src/faunus.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#define DOCTEST_CONFIG_IMPLEMENT
#include <doctest/doctest.h>
#include "mpicontroller.h"
#include "montecarlo.h"
#include "analysis.h"
#include "multipole.h"
#include "docopt.h"
#include "progress_tracker.h"
#include "spdlog/spdlog.h"
#include "move.h"
#include "actions.h"
#include <doctest/doctest.h>
#include <progress_tracker.h>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/null_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/sinks/basic_file_sink.h>
Expand Down
2 changes: 1 addition & 1 deletion src/io.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once

#include "particle.h"
#include "spdlog/spdlog.h"
#include "units.h"
#include "group.h"
#include <fstream>
#include <type_traits>
#include <concepts>
#include <iterator>
#include <spdlog/spdlog.h>
#include <range/v3/iterator/operations.hpp>
#include <range/v3/algorithm/for_each.hpp>
#include <numeric>
Expand Down
2 changes: 1 addition & 1 deletion src/molecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include "geometry.h"
#include "rotate.h"
#include "bonds.h"
#include "spdlog/spdlog.h"
#include "aux/eigensupport.h"
#include <functional>
#include <spdlog/spdlog.h>
#include <range/v3/view/transform.hpp>
#include <range/v3/view/join.hpp>
#include <range/v3/view/filter.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/montecarlo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "speciation.h"
#include "energy.h"
#include "move.h"
#include "spdlog/spdlog.h"
#include <spdlog/spdlog.h>
#include <range/v3/algorithm/for_each.hpp>

namespace Faunus {
Expand Down
4 changes: 2 additions & 2 deletions src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <doctest/doctest.h>
#include "core.h"
#include "move.h"
#include "speciation.h"
Expand All @@ -10,7 +9,8 @@
#include "regions.h"
#include "aux/iteratorsupport.h"
#include "aux/eigensupport.h"
#include "spdlog/spdlog.h"
#include <spdlog/spdlog.h>
#include <doctest/doctest.h>
#include <range/v3/view/counted.hpp>
#include <range/v3/algorithm/count.hpp>
#include <range/v3/algorithm/fold_left.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/penalty.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "penalty.h"
#include "space.h"
#include "spdlog/spdlog.h"
#include <spdlog/spdlog.h>

namespace Faunus::Energy {

Expand Down Expand Up @@ -234,4 +234,4 @@ void PenaltyMPI::averagePenaltyFunctions() {
}

#endif
} // namespace Faunus::Energy
} // namespace Faunus::Energy
2 changes: 1 addition & 1 deletion src/potentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include "units.h"
#include "auxiliary.h"
#include "aux/arange.h"
#include "spdlog/spdlog.h"
#include "smart_montecarlo.h"
#include <coulombgalore.h>
#include <spdlog/spdlog.h>

namespace Faunus::pairpotential {

Expand Down
2 changes: 1 addition & 1 deletion src/scatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "io.h"

//#define ANKERL_NANOBENCH_IMPLEMENT
#include "nanobench.h"
#include <nanobench.h>

namespace Faunus::Scatter {

Expand Down
2 changes: 1 addition & 1 deletion src/space.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "space.h"
#include "io.h"
#include "spdlog/spdlog.h"
#include "aux/eigensupport.h"
#include <spdlog/spdlog.h>
#include <range/v3/algorithm/for_each.hpp>
#include <range/v3/algorithm/count_if.hpp>
#include <doctest/doctest.h>
Expand Down
2 changes: 1 addition & 1 deletion src/speciation.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "bonds.h"
#include "speciation.h"
#include "aux/iteratorsupport.h"
#include "range/v3/range/conversion.hpp"
#include <range/v3/range/conversion.hpp>
#include <algorithm>
#include <range/v3/algorithm/all_of.hpp>
#include <range/v3/view/take.hpp>
Expand Down

0 comments on commit b7a218e

Please sign in to comment.