Commit 36ee1c8d authored by incardon's avatar incardon
Browse files

Merge branch 'Release_0.9.0' into benchmark_paper

parents 8dc3a72b 06d5f9f4
openfpm_numerics @ a52a73e5
Subproject commit 0f726cd27883862e5b6ab677c60c74bd333cf847
Subproject commit a52a73e5b1bb1abf8f032b3d687e84420ba8cdae
......@@ -425,7 +425,21 @@ public:
* \return the position of the element in space
*
*/
inline auto getPos(size_t vec_key) const -> decltype(v_pos.template get<0>(vec_key))
inline auto getPos(size_t vec_key) -> decltype(v_pos.template get<0>(vec_key))
{
return v_pos.template get<0>(vec_key);
}
/*! \brief Get the position of an element
*
* see the vector_dist iterator usage to get an element key
*
* \param vec_key element
*
* \return the position of the element in space
*
*/
inline auto getPos(size_t vec_key) const -> const decltype(v_pos.template get<0>(vec_key))
{
return v_pos.template get<0>(vec_key);
}
......@@ -460,6 +474,21 @@ public:
return v_prp.template get<id>(vec_key.getKey());
}
/*! \brief Get the property of an element
*
* see the vector_dist iterator usage to get an element key
*
* \tparam id property id
* \param vec_key vector element
*
* \return return the selected property of the vector element
*
*/
template<unsigned int id> inline auto getProp(size_t vec_key) -> decltype(v_prp.template get<id>(vec_key))
{
return v_prp.template get<id>(vec_key);
}
/*! \brief Get the property of an element
*
* see the vector_dist iterator usage to get an element key
......
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