Revert include ordering in state_point.cpp. Add comment about adaptor_type

This commit is contained in:
Paul Romano 2018-10-17 13:48:30 -05:00
parent 77951e1b70
commit 81858c119c
2 changed files with 9 additions and 7 deletions

View file

@ -22,6 +22,8 @@ extern "C" double global_tally_absorption;
// Non-member functions
//==============================================================================
// Alias for the type returned by xt::adapt(...). N is the dimension of the
// multidimensional array
template <std::size_t N>
using adaptor_type = xt::xtensor_adaptor<xt::xbuffer_adaptor<double*&, xt::no_ownership>, N>;

View file

@ -1,5 +1,12 @@
#include "openmc/state_point.h"
#include <algorithm>
#include <string>
#include <vector>
#include "xtensor/xbuilder.hpp" // for empty_like
#include "xtensor/xview.hpp"
#include "openmc/capi.h"
#include "openmc/constants.h"
#include "openmc/error.h"
@ -9,13 +16,6 @@
#include "openmc/simulation.h"
#include "openmc/tallies/tally.h"
#include "xtensor/xbuilder.hpp" // for empty_like
#include "xtensor/xview.hpp"
#include <algorithm>
#include <string>
#include <vector>
namespace openmc {