Commit b910c365 authored by incardon's avatar incardon

Fixing for Clang

parent fdaecc21
......@@ -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()
......
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment