packages/MC/mc/Group_Bounds.cc
//---------------------------------------------------------------------------//
// CONSTRUCTOR
//---------------------------------------------------------------------------//
/*!
 * \brief Construct with neutron and photon boundaries.
 *
 * Boundaries must be monotonic decreasing or empty. At least one group
 * boundaries must be provided.
 */
CONSTRUCTOR
\brief Construct with neutron and photon boundaries.

Boundaries must be monotonic decreasing or empty. At least one group
boundaries must be provided.
CONSTRUCTOR \ brief Construct with neutron and photon boundaries . Boundaries must be monotonic decreasing or empty . At least one group boundaries must be provided .
Group_Bounds::Group_Bounds(const Vec_Dbl &bounds)
    : d_bounds(bounds)
{
    for (int g = 0; g < num_groups(); ++g)
    {
        VALIDATE(d_bounds[g] > d_bounds[g+1],
                  "Energy bounds for group " << g << " <= bounds at "
                  << g+1);
    }
}
Group_Bounds :: Group_Bounds ( const Vec_Dbl & bounds ) : d_bounds ( bounds ) { for ( int g = 0 ; g < num_groups ( ) ; ++ g ) { VALIDATE ( d_bounds [ g ] > d_bounds [ g + 1 ] , " " << g << " " << g + 1 ) ; } }
CONSTRUCTOR
 \brief Construct with neutron and photon boundaries.
CONSTRUCTOR \ brief Construct with neutron and photon boundaries .
// check monotonicity