packages/Matprop/xs/Mat_DB.cc
//---------------------------------------------------------------------------//
// PUBLIC INTERFACE
//---------------------------------------------------------------------------//
/*!
 * \brief Set the number of cells and cross-section database.
 */
PUBLIC INTERFACE
\brief Set the number of cells and cross-section database.
PUBLIC INTERFACE \ brief Set the number of cells and cross - section database .
void Mat_DB::set(RCP_XS xs,
                 int    nc)
{
    REQUIRE(!xs.is_null());
    d_xs = xs;
    d_matids.clear();
    d_matids.resize(nc);
    std::fill(d_matids.begin(), d_matids.end(), -1);
}
void Mat_DB :: set ( RCP_XS xs , int nc ) { REQUIRE ( ! xs . is_null ( ) ) ; d_xs = xs ; d_matids . clear ( ) ; d_matids . resize ( nc ) ; std :: fill ( d_matids . begin ( ) , d_matids . end ( ) , -1 ) ; }
PUBLIC INTERFACE
 \brief Set the number of cells and cross-section database.
PUBLIC INTERFACE \ brief Set the number of cells and cross - section database .
// cross section database // clear the existing database