Commit e2065d95 authored by incardon's avatar incardon

Fixing AMR insert function

parent 307117f8
......@@ -356,7 +356,8 @@ public:
* \return the selected element
*
*/
template <unsigned int p>inline auto insert(size_t lvl, const grid_dist_key_dx<dim> & v1) -> typename std::add_lvalue_reference<decltype(gd_array.get(lvl).template get<p>(v1))>::type
template <unsigned int p>inline auto insert(size_t lvl, const grid_dist_key_dx<dim> & v1)
-> typename std::add_lvalue_reference<decltype(gd_array.get(lvl).template insert<p>(v1))>::type
{
#ifdef SE_CLASS2
check_valid(this,8);
......
......@@ -1586,6 +1586,22 @@ public:
return it;
}
/*! /brief Get a grid Iterator
*
* In case of dense grid getGridIterator is equivalent to getDomainIterator
* in case if sparse distributed grid getDomainIterator go across all the
* inserted point get grid iterator run across all grid points independently
* that the point has been insert or not
*
* \return a Grid iterator
*
*/
inline grid_dist_id_iterator_dec<Decomposition> getGridIterator(grid_key_dx<dim> & start, grid_key_dx<dim> & stop)
{
grid_dist_id_iterator_dec<Decomposition> it_dec(getDecomposition(), g_sz, start, stop);
return it_dec;
}
/*! /brief Get a grid Iterator
*
* In case of dense grid getGridIterator is equivalent to getDomainIterator
......
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