Skip to content
Snippets Groups Projects
Commit cb2732f9 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[bindings] put often used includes into bindings.hh, update cast

parent 2bda4ac9
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,6 @@ ...@@ -14,10 +14,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <boost/numeric/conversion/cast.hpp>
#include <dune/xt/common/exceptions.bindings.hh>
#include <dune/common/parallel/mpihelper.hh> #include <dune/common/parallel/mpihelper.hh>
#if HAVE_DUNE_FEM #if HAVE_DUNE_FEM
...@@ -27,13 +23,7 @@ ...@@ -27,13 +23,7 @@
#include <dune/pybindxi/pybind11.h> #include <dune/pybindxi/pybind11.h>
#include <dune/pybindxi/stl.h> #include <dune/pybindxi/stl.h>
#include <dune/xt/common/string.hh> #include "bindings.hh"
#include <dune/xt/common/timedlogging.hh>
#include "exceptions.bindings.hh"
#include "fvector.pbh"
#include "fmatrix.pbh"
#include "configuration.pbh"
PYBIND11_PLUGIN(_common) PYBIND11_PLUGIN(_common)
...@@ -47,7 +37,7 @@ PYBIND11_PLUGIN(_common) ...@@ -47,7 +37,7 @@ PYBIND11_PLUGIN(_common)
m.def("_init_mpi", m.def("_init_mpi",
[](const std::vector<std::string>& args) { [](const std::vector<std::string>& args) {
int argc = boost::numeric_cast<int>(args.size()); int argc = Dune::XT::Common::numeric_cast<int>(args.size());
char** argv = Dune::XT::Common::vector_to_main_args(args); char** argv = Dune::XT::Common::vector_to_main_args(args);
Dune::MPIHelper::instance(argc, argv); Dune::MPIHelper::instance(argc, argv);
#if HAVE_DUNE_FEM #if HAVE_DUNE_FEM
......
#ifndef DUNE_XT_COMMON_BINDINGS_HH
#define DUNE_XT_COMMON_BINDINGS_HH
#include "exceptions.bindings.hh"
#include "fvector.pbh"
#include "fmatrix.pbh"
#include "configuration.pbh"
#include "numeric_cast.hh"
#include "string.hh"
#include "timedlogging.hh"
#endif // DUNE_XT_COMMON_BINDINGS_HH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment