Use fmt/core.h header to reduce compile time

This commit is contained in:
Paul Romano 2020-02-07 14:55:11 -06:00
parent 2a230cd739
commit cc919d25c5
42 changed files with 45 additions and 46 deletions

View file

@ -9,9 +9,8 @@
#include <set>
#include <string>
#include <fmt/format.h>
#include <fmt/core.h>
#include <gsl/gsl>
#include <fmt/format.h>
#include "openmc/capi.h"
#include "openmc/constants.h"

View file

@ -15,7 +15,7 @@
#include "uwuw.hpp"
#include "dagmcmetadata.hpp"
#endif
#include <fmt/format.h>
#include <fmt/core.h>
#include <string>
#include <sstream>

View file

@ -2,7 +2,7 @@
#include <array>
#include <fmt/format.h>
#include <fmt/core.h>
#include <fmt/ostream.h>
#include "openmc/cell.h"

View file

@ -4,7 +4,7 @@
#include <sstream>
#include <unordered_set>
#include <fmt/format.h>
#include <fmt/core.h>
#include <pugixml.hpp>
#include "openmc/cell.h"

View file

@ -7,7 +7,7 @@
#include "xtensor/xtensor.hpp"
#include "xtensor/xarray.hpp"
#include <fmt/format.h>
#include <fmt/core.h>
#include "hdf5.h"
#include "hdf5_hl.h"

View file

@ -9,7 +9,7 @@
#ifdef _OPENMP
#include <omp.h>
#endif
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/constants.h"
@ -134,7 +134,7 @@ parse_command_line(int argc, char* argv[])
} else if (arg == "-n" || arg == "--particles") {
i += 1;
settings::n_particles = std::stoll(argv[i]);
} else if (arg == "-e" || arg == "--event") {
settings::event_based = true;

View file

@ -4,7 +4,7 @@
#include <string>
#include <vector>
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/cell.h"
#include "openmc/error.h"

View file

@ -9,7 +9,7 @@
#include <omp.h>
#endif
#include <fmt/format.h>
#include <fmt/core.h>
#include "xtensor/xmath.hpp"
#include "xtensor/xsort.hpp"
#include "xtensor/xadapt.hpp"

View file

@ -11,7 +11,7 @@
#include <unordered_map>
#include <utility> // for pair
#include <fmt/format.h>
#include <fmt/core.h>
#include <fmt/ostream.h>
#ifdef _OPENMP
#include <omp.h>

View file

@ -3,7 +3,7 @@
#include <algorithm> // copy, min
#include <cmath> // log, abs, copysign
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/bank.h"
#include "openmc/capi.h"
@ -236,7 +236,7 @@ Particle::event_advance()
score_track_derivative(this, distance);
}
}
void
Particle::event_cross_surface()
{

View file

@ -21,7 +21,7 @@
#include "openmc/thermal.h"
#include "openmc/tallies/tally.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include <algorithm> // for max, min, max_element
#include <cmath> // for sqrt, exp, log, abs, copysign

View file

@ -2,7 +2,7 @@
#include <stdexcept>
#include <fmt/format.h>
#include <fmt/core.h>
#include "xtensor/xarray.hpp"
#include "openmc/bank.h"
@ -153,7 +153,7 @@ create_fission_sites(Particle* p)
// We add 1 to the delayed_group bc in MG, -1 is prompt, but in the rest
// of the code, 0 is prompt.
site.delayed_group = dg + 1;
// Store fission site in bank
if (use_fission_bank) {
int64_t idx = simulation::fission_bank.thread_safe_append(site);

View file

@ -4,7 +4,7 @@
#include <fstream>
#include <sstream>
#include <fmt/format.h>
#include <fmt/core.h>
#include <fmt/ostream.h>
#include "xtensor/xview.hpp"

View file

@ -3,7 +3,7 @@
#include <string>
#include <utility> // for move
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/constants.h"
#include "openmc/hdf5_interface.h"

View file

@ -2,7 +2,7 @@
#include <string> // for string
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/error.h"
#include "openmc/hdf5_interface.h"

View file

@ -4,7 +4,7 @@
#include <limits> // for numeric_limits
#include <string>
#include <fmt/format.h>
#include <fmt/core.h>
#ifdef _OPENMP
#include <omp.h>
#endif

View file

@ -2,7 +2,7 @@
#include <algorithm> // for move
#include <fmt/format.h>
#include <fmt/core.h>
#include "xtensor/xadapt.hpp"
#include "openmc/bank.h"

View file

@ -5,7 +5,7 @@
#include <string>
#include <vector>
#include <fmt/format.h>
#include <fmt/core.h>
#include "xtensor/xbuilder.hpp" // for empty_like
#include "xtensor/xview.hpp"

View file

@ -4,7 +4,7 @@
#include <cmath>
#include <utility>
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/error.h"
#include "openmc/dagmc.h"

View file

@ -7,7 +7,7 @@
#include "openmc/tallies/tally.h"
#include "openmc/xml_interface.h"
#include <fmt/format.h>
#include <fmt/core.h>
template class std::vector<openmc::TallyDerivative>;

View file

@ -2,7 +2,7 @@
#include <cmath>
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/constants.h"
#include "openmc/error.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_cell.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/cell.h"

View file

@ -2,7 +2,7 @@
#include <string>
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/cell.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_distribcell.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/cell.h"
#include "openmc/error.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_energy.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/constants.h" // For F90_NONE

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_energyfunc.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/error.h"
#include "openmc/search.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_material.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/material.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_mesh.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/constants.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_mu.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/error.h"
#include "openmc/search.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_polar.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/constants.h"
#include "openmc/error.h"

View file

@ -2,7 +2,7 @@
#include <utility> // For pair
#include <fmt/format.h>
#include <fmt/core.h>
#include <gsl/gsl>
#include "openmc/capi.h"

View file

@ -2,7 +2,7 @@
#include <utility> // For pair
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/error.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_surface.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/error.h"
#include "openmc/surface.h"

View file

@ -1,6 +1,6 @@
#include "openmc/tallies/filter_universe.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/cell.h"
#include "openmc/error.h"

View file

@ -4,7 +4,7 @@
#include <sstream>
#include <utility> // For pair
#include <fmt/format.h>
#include <fmt/core.h>
#include <gsl/gsl>
#include "openmc/capi.h"

View file

@ -28,7 +28,7 @@
#include "openmc/tallies/filter_surface.h"
#include "openmc/xml_interface.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "xtensor/xadapt.hpp"
#include "xtensor/xbuilder.hpp" // for empty_like
#include "xtensor/xview.hpp"

View file

@ -3,7 +3,7 @@
#include <cmath>
#include <utility> // for std::pair
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/constants.h"

View file

@ -3,7 +3,7 @@
#include <algorithm> // for sort, move, min, max, find
#include <cmath> // for round, sqrt, abs
#include <fmt/format.h>
#include <fmt/core.h>
#include "xtensor/xarray.hpp"
#include "xtensor/xbuilder.hpp"
#include "xtensor/xmath.hpp"

View file

@ -6,7 +6,7 @@
#include "openmc/settings.h"
#include "openmc/simulation.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "xtensor/xtensor.hpp"
#include <cstddef> // for size_t

View file

@ -15,7 +15,7 @@
#include "openmc/timer.h"
#include "openmc/xml_interface.h"
#include <fmt/format.h>
#include <fmt/core.h>
#ifdef _OPENMP
#include <omp.h>
#endif

View file

@ -6,7 +6,7 @@
#include "openmc/math_functions.h"
#include "openmc/nuclide.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include <cmath>

View file

@ -1,6 +1,6 @@
#include "openmc/xml_interface.h"
#include <fmt/format.h>
#include <fmt/core.h>
#include "openmc/error.h"
#include "openmc/string_utils.h"