From 9095d9efa09fcf1669e4c37f779a80da3216aa57 Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Fri, 29 Dec 2017 14:46:05 +0100
Subject: [PATCH] Exported all integer types of GPUFields to Python

---
 apps/pythonmodule/PythonModule.cpp | 5 ++++-
 src/cuda/CMakeLists.txt            | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/apps/pythonmodule/PythonModule.cpp b/apps/pythonmodule/PythonModule.cpp
index a34a377f0..21febaefd 100644
--- a/apps/pythonmodule/PythonModule.cpp
+++ b/apps/pythonmodule/PythonModule.cpp
@@ -50,6 +50,7 @@ typedef bmpl::vector<
             Field<walberla::real_t,4>,
             Field<walberla::real_t,5>,
             Field<walberla::real_t,9>,
+            Field<walberla::real_t,15>,
             Field<walberla::real_t,19>,
             Field<walberla::real_t,27>,
 
@@ -123,7 +124,9 @@ struct InitObject
 
 #ifdef WALBERLA_BUILD_WITH_CUDA
       using walberla::cuda::GPUField;
-      typedef bmpl::vector<GPUField<double>, GPUField<float>, GPUField<int>, GPUField<uint8_t>, GPUField<uint16_t> > GPUFields;
+      typedef bmpl::vector<GPUField<double>, GPUField<float>,
+                           GPUField<int8_t>,  GPUField<int16_t>,  GPUField<int32_t>, GPUField<int64_t>,
+                           GPUField<uint8_t>, GPUField<uint16_t>, GPUField<uint32_t>,GPUField<uint64_t> > GPUFields;
 
       pythonManager->addExporterFunction( cuda::exportModuleToPython<GPUFields, FieldTypes> );
       pythonManager->addBlockDataConversion<GPUFields>();
diff --git a/src/cuda/CMakeLists.txt b/src/cuda/CMakeLists.txt
index 83db21519..b38244fc9 100644
--- a/src/cuda/CMakeLists.txt
+++ b/src/cuda/CMakeLists.txt
@@ -4,6 +4,6 @@
 #
 ###################################################################################################
 
-waLBerla_add_module( DEPENDS core communication domain_decomposition python_coupling field stencil BUILD_ONLY_IF_FOUND CUDA )
+waLBerla_add_module( DEPENDS blockforest core communication domain_decomposition python_coupling field stencil BUILD_ONLY_IF_FOUND CUDA )
 
 ###################################################################################################                        
\ No newline at end of file
-- 
GitLab