diff --git a/script/py/process_examples.py b/script/py/process_examples.py index a77878e51c10bb657e8c81362a21ecc8d5429c40..172a36f5ab0da9cbe375ec0bd71acc29ccabb5b2 100644 --- a/script/py/process_examples.py +++ b/script/py/process_examples.py @@ -7,7 +7,7 @@ from os import listdir from os.path import isdir, join from pack_examples import pack_example -parser = argparse.ArgumentParser(description='Pack the examples, generate the vtk files to generate images, create the markdown pages for the wiki') +parser = argparse.ArgumentParser(description='Pack the examples') parser.add_argument('directory', help='directory where are located the examples') args = parser.parse_args() diff --git a/src/Vector/vector_dist_kernel.hpp b/src/Vector/vector_dist_kernel.hpp index 4e825223cd3d5729eff1ecd6274d9a6256801444..48bdc5efaa319b42701baeeb8a071e218ed57f7e 100644 --- a/src/Vector/vector_dist_kernel.hpp +++ b/src/Vector/vector_dist_kernel.hpp @@ -113,7 +113,7 @@ public: * \return the position of the element in space * */ - __device__ inline auto getPos(int vec_key) -> decltype(v_pos.template get<0>(vec_key)) + __device__ __host__ inline auto getPos(int vec_key) -> decltype(v_pos.template get<0>(vec_key)) { return v_pos.template get<0>(vec_key); } @@ -127,7 +127,7 @@ public: * \return the position of the element in space * */ - __device__ inline auto getPos(const vect_dist_key_dx & vec_key) -> decltype(v_pos.template get<0>(vec_key.getKey())) + __device__ __host__ inline auto getPos(const vect_dist_key_dx & vec_key) -> decltype(v_pos.template get<0>(vec_key.getKey())) { return v_pos.template get<0>(vec_key.getKey()); } @@ -141,7 +141,7 @@ public: * \return the position of the element in space * */ - __device__ inline auto getPos(int vec_key) const -> decltype(v_pos.template get<0>(vec_key)) + __device__ __host__ inline auto getPos(int vec_key) const -> decltype(v_pos.template get<0>(vec_key)) { return v_pos.template get<0>(vec_key); } @@ -155,7 +155,7 @@ public: * \return the position of the element in space * */ - __device__ inline auto getPos(const vect_dist_key_dx & vec_key) const -> decltype(v_pos.template get<0>(vec_key.getKey())) + __device__ __host__ inline auto getPos(const vect_dist_key_dx & vec_key) const -> decltype(v_pos.template get<0>(vec_key.getKey())) { return v_pos.template get<0>(vec_key.getKey()); } @@ -170,7 +170,7 @@ public: * \return return the selected property of the vector element * */ - template<unsigned int id> __device__ inline auto getProp(int vec_key) -> decltype(v_prp.template get<id>(vec_key)) + template<unsigned int id> __device__ __host__ inline auto getProp(int vec_key) -> decltype(v_prp.template get<id>(vec_key)) { return v_prp.template get<id>(vec_key); } @@ -185,7 +185,7 @@ public: * \return return the selected property of the vector element * */ - template<unsigned int id> __device__ inline auto getProp(const vect_dist_key_dx & vec_key) -> decltype(v_prp.template get<id>(vec_key.getKey())) + template<unsigned int id> __device__ __host__ inline auto getProp(const vect_dist_key_dx & vec_key) -> decltype(v_prp.template get<id>(vec_key.getKey())) { return v_prp.template get<id>(vec_key.getKey()); } @@ -200,7 +200,7 @@ public: * \return return the selected property of the vector element * */ - template<unsigned int id> __device__ inline auto getProp(int vec_key) const -> decltype(v_prp.template get<id>(vec_key)) + template<unsigned int id> __device__ __host__ inline auto getProp(int vec_key) const -> decltype(v_prp.template get<id>(vec_key)) { return v_prp.template get<id>(vec_key); } @@ -215,7 +215,7 @@ public: * \return return the selected property of the vector element * */ - template<unsigned int id> __device__ inline auto getProp(const vect_dist_key_dx & vec_key) const -> decltype(v_prp.template get<id>(vec_key.getKey())) + template<unsigned int id> __device__ __host__ inline auto getProp(const vect_dist_key_dx & vec_key) const -> decltype(v_prp.template get<id>(vec_key.getKey())) { return v_prp.template get<id>(vec_key.getKey()); }