#ifdef __CUDACC__ #define CUDA_CALLABLE_MEMBER __host__ __device__ #else #define CUDA_CALLABLE_MEMBER #endif #ifndef __DTrajectory__ #define __DTrajectory__ #include "swimstep.h" class DTrajectory { public: CUDA_CALLABLE_MEMBER DTrajectory(int maxSwimSteps){ swimsteps = new swimstep[maxSwimSteps]; } private: swimstep *swimsteps; }; #endif