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