Skip to content
Snippets Groups Projects
Forked from waLBerla / waLBerla
337 commits behind, 20 commits ahead of the upstream repository.
PythonWrapper.h 1.55 KiB
//======================================================================================================================
//
//  This file is part of waLBerla. waLBerla is free software: you can 
//  redistribute it and/or modify it under the terms of the GNU General Public
//  License as published by the Free Software Foundation, either version 3 of 
//  the License, or (at your option) any later version.
//  
//  waLBerla is distributed in the hope that it will be useful, but WITHOUT 
//  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
//  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License 
//  for more details.
//  
//  You should have received a copy of the GNU General Public License along
//  with waLBerla (see COPYING.txt). If not, see <http://www.gnu.org/licenses/>.
//
//! \file PythonWrapper.h
//! \ingroup core
//! \author Matthias Markl <matthias.markl@fau.de>
//! \author Martin Bauer <martin.bauer@fau.de>
//! \author Markus Holzer <markus.holzer@fau.de>
//
//======================================================================================================================

#pragma once

// Do not reorder includes - the include order is important
#include "waLBerlaDefinitions.h"

#ifdef WALBERLA_BUILD_WITH_PYTHON // macro defined in waLBerlaDefinitions.h

#define PYBIND11_NAMESPACE walberla::pybind11

namespace PYBIND11_NAMESPACE {}
namespace pybind11 {
   // pybind11 uses ::pybind11 in a few places internally, so we need this alias
   using namespace PYBIND11_NAMESPACE;
}

#include "pybind11/pybind11.h"

#endif