packages/Matprop/xs/XS.cc
//---------------------------------------------------------------------------//
// SET FUNCTIONS
//---------------------------------------------------------------------------//
/*!
 * \brief Set number of groups and Pn order that are stored.
 *
 * \param Pn_order anistropic scattering order (number of moments = Pn_order +
 * 1)
 *
 * \param num_groups number of energy groups
 *
 * All existing data is cleared in this call.
 */
SET FUNCTIONS
\brief Set number of groups and Pn order that are stored.

\param Pn_order anistropic scattering order (number of moments = Pn_order +
1)

\param num_groups number of energy groups

All existing data is cleared in this call.
SET FUNCTIONS \ brief Set number of groups and Pn order that are stored . \ param Pn_order anistropic scattering order ( number of moments = Pn_order + 1 ) \ param num_groups number of energy groups All existing data is cleared in this call .
void XS::set(int Pn_order,
             int num_groups)
{
    REQUIRE(Pn_order >= 0);
    REQUIRE(num_groups > 0);
    d_pn = Pn_order;
    d_Ng = num_groups;
    d_Nm = 0;
    d_totals.clear();
    d_scatter.clear();
    d_inst_totals.clear();
    d_inst_scat.clear();
    d_totals.resize(END_XS_TYPES);
    d_inst_totals.resize(END_XS_TYPES);
    d_scatter.resize(d_pn + 1);
    d_inst_scat.resize(d_pn + 1);
    d_v.size(d_Ng);
    d_bnds.size(d_Ng + 1);
}
void XS :: set ( int Pn_order , int num_groups ) { REQUIRE ( Pn_order >= 0 ) ; REQUIRE ( num_groups > 0 ) ; d_pn = Pn_order ; d_Ng = num_groups ; d_Nm = 0 ; d_totals . clear ( ) ; d_scatter . clear ( ) ; d_inst_totals . clear ( ) ; d_inst_scat . clear ( ) ; d_totals . resize ( END_XS_TYPES ) ; d_inst_totals . resize ( END_XS_TYPES ) ; d_scatter . resize ( d_pn + 1 ) ; d_inst_scat . resize ( d_pn + 1 ) ; d_v . size ( d_Ng ) ; d_bnds . size ( d_Ng + 1 ) ; }
SET FUNCTIONS
 \brief Set number of groups and Pn order that are stored.
SET FUNCTIONS \ brief Set number of groups and Pn order that are stored .
// clear data // resize totals // resize scattering order vector // resize velocities