packages/Matprop/xs/XS.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Set the group bounds.
 */
\brief Set the group bounds.
\ brief Set the group bounds .
void XS::set_bounds(const OneDArray &bounds)
{
    REQUIRE(bounds.size() == d_Ng + 1);
    REQUIRE(bounds.size() == d_bnds.length());
    d_bnds[0] = bounds[0];
    for (int g = 1; g < d_Ng + 1; ++g)
    {
        CHECK(bounds[g] < bounds[g-1]);
        d_bnds[g] = bounds[g];
    }
}
void XS :: set_bounds ( const OneDArray & bounds ) { REQUIRE ( bounds . size ( ) == d_Ng + 1 ) ; REQUIRE ( bounds . size ( ) == d_bnds . length ( ) ) ; d_bnds [ 0 ] = bounds [ 0 ] ; for ( int g = 1 ; g < d_Ng + 1 ; ++ g ) { CHECK ( bounds [ g ] < bounds [ g - 1 ] ) ; d_bnds [ g ] = bounds [ g ] ; } }
\brief Set the group bounds.
\ brief Set the group bounds .