packages/SPn/mesh/Partitioner.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Build global uniform cell edges.
 */
\brief Build global uniform cell edges.
\ brief Build global uniform cell edges .
void Partitioner::build_uniform_edges(int      num_cells,
                                      double   delta,
                                      Vec_Dbl& edges)
{
    REQUIRE(num_cells > 0);
    REQUIRE(delta > 0.);
    edges.resize(num_cells + 1);
    for (size_t i = 0; i < edges.size(); ++i)
        edges[i] = delta * i;
    ENSURE(edges.size() == num_cells + 1);
    ENSURE(profugus::soft_equiv(edges.front(), 0.));
    ENSURE(profugus::soft_equiv(edges.back(), delta * num_cells));
}
void Partitioner :: build_uniform_edges ( int num_cells , double delta , Vec_Dbl & edges ) { REQUIRE ( num_cells > 0 ) ; REQUIRE ( delta > 0. ) ; edges . resize ( num_cells + 1 ) ; for ( size_t i = 0 ; i < edges . size ( ) ; ++ i ) edges [ i ] = delta * i ; ENSURE ( edges . size ( ) == num_cells + 1 ) ; ENSURE ( profugus :: soft_equiv ( edges . front ( ) , 0. ) ) ; ENSURE ( profugus :: soft_equiv ( edges . back ( ) , delta * num_cells ) ) ; }
\brief Build global uniform cell edges.
\ brief Build global uniform cell edges .