← Back to team overview

yade-dev team mailing list archive

Re: [Bug 509132] Re: #include<yade/lib-pyutil/numpy.hpp> breaks compilation

 

I already tried putting this include first (in the cpp). No success.

I realize I abusively assume that you read changes in the commits. I 
should explain more :
I wrote in TesselationWrapper.cpp:378 a function returning a python 
array as you suggeted, with porosity, volume, and deformation for each 
particle. The comments in the header are short but should be enough to 
understand how to set the two states that will be used to define the 
deformation increments.
Looking at the function, you can easily return other types of containers 
with what you want inside, if it can't be compiled with numpy_boost's.
 
Appart from the compile problem, not done is the declaration of TW in 
yadeWrapper, I can do that.

Bruno

p.s. Many "using" in headers indeed. Starting from Omega.hpp...

-- 
#include<yade/lib-pyutil/numpy.hpp> breaks compilation
https://bugs.launchpad.net/bugs/509132
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: New

Bug description:
Vaclav, I'll let you fix this (or use different containers in python::dict TesselationWrapper::getVolPoroDef(bool deformation)) when you need the data. The python array should be returned correctly as soon as the code compiles.
I'm still wondering why this #include is accepted in eudoxos.cpp but not in other files (I tried including this random yade files, it gave the same problem everywhere).


C /home/bruno/YADE/build-last-opt/plugins0.cpp
In file included from /home/bruno/YADE/build-last-opt/include/yade-last/yade/lib-pyutil/numpy.hpp:3,
from /home/bruno/YADE/yade-bzr/pkg/dem/Engine/GlobalEngine/TesselationWrapper.cpp:10,
from /home/bruno/YADE/build-last-opt/plugins0.cpp:12:
/home/bruno/YADE/build-last-opt/include/yade-last/yade/lib-pyutil/numpy_boost.hpp: In constructor 'numpy_boost<T, NDims>::numpy_boost(PyObject*)':
/home/bruno/YADE/build-last-opt/include/yade-last/yade/lib-pyutil/numpy_boost.hpp:146: error: reference to 'detail' is ambiguous
/home/bruno/YADE/build-last-opt/include/yade-last/yade/lib-pyutil/numpy_boost.hpp:50: error: candidates are: namespace detail { }
/usr/include/boost/type_traits/detail/cv_traits_impl.hpp:24: error: namespace boost::detail { }





References