packages/SPn/mesh/Partitioner.cc
//---------------------------------------------------------------------------//
// PRIVATE FUNCTIONS
//---------------------------------------------------------------------------//
/*!
 * \brief Initialize the parameter list with defaults.
 */
PRIVATE FUNCTIONS
\brief Initialize the parameter list with defaults.
PRIVATE FUNCTIONS \ brief Initialize the parameter list with defaults .
void Partitioner::init_pl(RCP_ParameterList pl)
{
    ParameterList defaults;
    defaults.set("num_z_blocks", 1);
    defaults.set("num_sets", 1);
    defaults.set("dimension", 3);
    pl->setParametersNotAlreadySet(defaults);
    bool has_k = (pl->isParameter("num_cells_k") ||
                  pl->isParameter("z_edges"));
    if (!has_k)
    {
        pl->set("dimension", 2);
    }
}
void Partitioner :: init_pl ( RCP_ParameterList pl ) { ParameterList defaults ; defaults . set ( " " , 1 ) ; defaults . set ( " " , 1 ) ; defaults . set ( " " , 3 ) ; pl -> setParametersNotAlreadySet ( defaults ) ; bool has_k = ( pl -> isParameter ( " " ) || pl -> isParameter ( " " ) ) ; if ( ! has_k ) { pl -> set ( " " , 2 ) ; } }
PRIVATE FUNCTIONS
 \brief Initialize the parameter list with defaults.
PRIVATE FUNCTIONS \ brief Initialize the parameter list with defaults .
// make a parameter list of defaults // number of blocks // number of sets // dimension // update the parameter list // determine dimension by examing the existing list // set dimension to 2