src/ModelParametersInfo.cpp
void ParameterGroupInfo::addYearToPC(int pc, int y){
    if (debug) cout<<"starting ParameterGroupInfo::addYearToPC("<<pc<<cc<<y<<") for "<<name<<endl;
    IndexBlockSet* pIBS = getIndexBlockSet("YEAR_BLOCK");
    IndexBlock* pIB  = pIBS->getIndexBlock(pc);
    if (debug) IndexBlock::debug=1;
    pIB->addElement(y);
    if (debug) IndexBlock::debug=0;
    createIndices();
    if (debug) cout<<"finished ParameterGroupInfo::addYearToPC("<<pc<<cc<<y<<") for "<<name<<endl;
}
/**
 * Add a year to a parameter combination.
 * 
 * @param pc - parameter combination index to add year to
 * @param y - year to add
 */
Add a year to a parameter combination.

@param pc - parameter combination index to add year to
@param y - year to add
Add a year to a parameter combination . @param pc - parameter combination index to add year to @param y - year to add
void ParameterGroupInfo::addYearToPC(int pc, int y){
    if (debug) cout<<"starting ParameterGroupInfo::addYearToPC("<<pc<<cc<<y<<") for "<<name<<endl;
    IndexBlockSet* pIBS = getIndexBlockSet("YEAR_BLOCK");
    IndexBlock* pIB  = pIBS->getIndexBlock(pc);
    if (debug) IndexBlock::debug=1;
    pIB->addElement(y);
    if (debug) IndexBlock::debug=0;
    createIndices();
    if (debug) cout<<"finished ParameterGroupInfo::addYearToPC("<<pc<<cc<<y<<") for "<<name<<endl;
}
void ParameterGroupInfo :: addYearToPC ( int pc , int y ) { if ( debug ) cout << " " << pc << cc << y << " " << name << endl ; IndexBlockSet * pIBS = getIndexBlockSet ( " " ) ; IndexBlock * pIB = pIBS -> getIndexBlock ( pc ) ; if ( debug ) IndexBlock :: debug = 1 ; pIB -> addElement ( y ) ; if ( debug ) IndexBlock :: debug = 0 ; createIndices ( ) ; if ( debug ) cout << " " << pc << cc << y << " " << name << endl ; }
Add a year to a parameter combination.
Add a year to a parameter combination .