diff --git a/src/cuda/python/Exports.impl.h b/src/cuda/python/Exports.impl.h index 69807dbd89560d5d710a981d1641ebe274f5cf9e..ada1586f3884bd42d841c94a36d20a2a76682e1f 100644 --- a/src/cuda/python/Exports.impl.h +++ b/src/cuda/python/Exports.impl.h @@ -78,6 +78,7 @@ namespace internal { .add_property("offsets", &field::internal::field_offsets < GpuField_T > ) .add_property("ptr", &gpufield_ptr < GpuField_T > ) .add_property("dtypeStr", &gpufield_dtypeStr < GpuField_T > ) + .add_property("isPitchedMem", &GpuField_T::isPitchedMem ) .def("swapDataPointers", &field::internal::field_swapDataPointers < GpuField_T > ) .add_property("nrOfGhostLayers", &GpuField_T::nrOfGhostLayers ) .def("cloneUninitialized", &GpuField_T::cloneUninitialized, return_value_policy<manage_new_object>()) @@ -91,7 +92,6 @@ namespace internal { bases<walberla::communication::UniformPackInfo>, boost::noncopyable >( "GpuFieldPackInfo", no_init ); - using field::communication::UniformMPIDatatypeInfo; class_< UniformMPIDatatypeInfo<GpuField_T>, shared_ptr< UniformMPIDatatypeInfo<GpuField_T> >, diff --git a/src/field/python/FieldExport.impl.h b/src/field/python/FieldExport.impl.h index e14d9fa78ac512ddd21c6fa5dba48db561ac1bea..058379e656756d133bec1b45255bbc76cc36c9ea 100644 --- a/src/field/python/FieldExport.impl.h +++ b/src/field/python/FieldExport.impl.h @@ -561,7 +561,7 @@ namespace internal { template<typename GlField_T> 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() ); }