Skip to content
Snippets Groups Projects
Commit 719f209b authored by Martin Bauer's avatar Martin Bauer
Browse files

Bugfix in cuda python export

parent 8eaac6a1
No related merge requests found
...@@ -78,6 +78,7 @@ namespace internal { ...@@ -78,6 +78,7 @@ namespace internal {
.add_property("offsets", &field::internal::field_offsets < GpuField_T > ) .add_property("offsets", &field::internal::field_offsets < GpuField_T > )
.add_property("ptr", &gpufield_ptr < GpuField_T > ) .add_property("ptr", &gpufield_ptr < GpuField_T > )
.add_property("dtypeStr", &gpufield_dtypeStr < GpuField_T > ) .add_property("dtypeStr", &gpufield_dtypeStr < GpuField_T > )
.add_property("isPitchedMem", &GpuField_T::isPitchedMem )
.def("swapDataPointers", &field::internal::field_swapDataPointers < GpuField_T > ) .def("swapDataPointers", &field::internal::field_swapDataPointers < GpuField_T > )
.add_property("nrOfGhostLayers", &GpuField_T::nrOfGhostLayers ) .add_property("nrOfGhostLayers", &GpuField_T::nrOfGhostLayers )
.def("cloneUninitialized", &GpuField_T::cloneUninitialized, return_value_policy<manage_new_object>()) .def("cloneUninitialized", &GpuField_T::cloneUninitialized, return_value_policy<manage_new_object>())
...@@ -91,7 +92,6 @@ namespace internal { ...@@ -91,7 +92,6 @@ namespace internal {
bases<walberla::communication::UniformPackInfo>, bases<walberla::communication::UniformPackInfo>,
boost::noncopyable >( "GpuFieldPackInfo", no_init ); boost::noncopyable >( "GpuFieldPackInfo", no_init );
using field::communication::UniformMPIDatatypeInfo; using field::communication::UniformMPIDatatypeInfo;
class_< UniformMPIDatatypeInfo<GpuField_T>, class_< UniformMPIDatatypeInfo<GpuField_T>,
shared_ptr< UniformMPIDatatypeInfo<GpuField_T> >, shared_ptr< UniformMPIDatatypeInfo<GpuField_T> >,
......
...@@ -561,7 +561,7 @@ namespace internal { ...@@ -561,7 +561,7 @@ namespace internal {
template<typename GlField_T> template<typename GlField_T>
boost::python::object field_sizeWithGhostLayer( const GlField_T & field ) { boost::python::object field_sizeWithGhostLayer( const GlField_T & field ) {
return boost::python::make_tuple( field.xSizeWithGhostLayer(), field.xSizeWithGhostLayer(), field.xSizeWithGhostLayer(), field.fSize() ); return boost::python::make_tuple( field.xSizeWithGhostLayer(), field.ySizeWithGhostLayer(), field.zSizeWithGhostLayer(), field.fSize() );
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment