headmyshoulder / odeint-v2

odeint - solving ordinary differential equations in c++ v2
http://headmyshoulder.github.com/odeint-v2/
Other
340 stars 101 forks source link

missing include in thrust_resize.hpp #135

Closed slayoo closed 10 years ago

slayoo commented 10 years ago

Hi,

There is probably a missing include in thrust_resize.hpp as this file cannot be included on its own:

#define THRUST_DEVICE_SYSTEM THRUST_DEVICE_SYSTEM_CPP
//#include <boost/numeric/odeint.hpp>
#include <boost/numeric/odeint/external/thrust/thrust_resize.hpp>
int main() { }

gives the following error during compilation:

$ g++ bug.cpp
In file included from bug.cpp:3:0:
/usr/include/boost/numeric/odeint/external/thrust/thrust_resize.hpp:32:8: error: ‘is_resizeable’ is not a class template
 struct is_resizeable< thrust::device_vector< T > >
        ^

Uncommenting the line that includes odeint.hpp helps.

HTH, Sylwester