Commit f6f1dde2 authored by incardon's avatar incardon
Browse files

Adding SFC functionality

parent 746121a6
......@@ -178,6 +178,7 @@ class grid_sm
for (size_t i = 1 ; i < N ; i++)
{
/* coverity[dead_error_begin] */
sz_s[i] = sz[i]*sz_s[i-1];
// set the box
......
......@@ -104,12 +104,12 @@ public:
return SFC;
}
/*! \brief return the celllist iterator (across cells)
/*! \brief Initialize Space-filling-curve (SFC)
*
*
* \return an iterator
*
*/
inline typename Prock<dim,CellList_gen<dim,T,Prock,Mem_type,transform,base>>::Pit getIterator()
inline void init_SFC()
{
// Initialize SFC
if (init_sfc == false)
......@@ -117,6 +117,16 @@ public:
initialize_sfc(this->getPadding(0));
init_sfc = true;
}
}
/*! \brief return the celllist iterator (across cells)
*
* \return an iterator
*
*/
inline typename Prock<dim,CellList_gen<dim,T,Prock,Mem_type,transform,base>>::Pit getIterator()
{
init_SFC();
return typename Prock<dim,CellList_gen<dim,T,Prock,Mem_type,transform,base>>::Pit(*this);
}
......
......@@ -17,7 +17,10 @@ template<unsigned int dim> std::ostream& operator<<(std::ostream& str, const com
{
// print the combination of ostream
for (size_t i = 0 ; i < dim-1 ; i++)
{
/* coverity[dead_error_line] */
str << c.c[i] << ";";
}
str << c.c[dim-1];
......
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