src/mem/ruby/network/fault_model/FaultModel.cc
// this function is used only for debugging purposes
this function is used only for debugging purposes
this function is used only for debugging purposes
void
FaultModel::print(void)
{
    std::cout << "--- PRINTING configurations ---\n";
    for (int record = 0; record < configurations.size(); record++){
        std::cout << "(" << record << ") ";
        std::cout << "VCs=" << configurations[record].vcs << " ";
        std::cout << "Buff/VC=" << configurations[record].buff_per_vc << " [";
        for (int fault_type_num = 0;
             fault_type_num < number_of_fault_types;
             fault_type_num++){
            std::cout <<
                (100 * configurations[record].fault_type[fault_type_num]);
            std::cout << "% ";
        }
        std::cout << "]\n";
    }
    std::cout << "--- PRINTING temperature weights ---\n";
    for (int record = 0; record < temperature_weights.size(); record++){
        std::cout << "temperature=" << record << " => ";
        std::cout << "weight=" << temperature_weights[record];
        std::cout << "\n";
    }
}
void FaultModel :: print ( void ) { std :: cout << " \n " ; for ( int record = 0 ; record < configurations . size ( ) ; record ++ ) { std :: cout << " " << record << " " ; std :: cout << " " << configurations [ record ] . vcs << " " ; std :: cout << " " << configurations [ record ] . buff_per_vc << " " ; for ( int fault_type_num = 0 ; fault_type_num < number_of_fault_types ; fault_type_num ++ ) { std :: cout << ( 100 * configurations [ record ] . fault_type [ fault_type_num ] ) ; std :: cout << " " ; } std :: cout << " \n " ; } std :: cout << " \n " ; for ( int record = 0 ; record < temperature_weights . size ( ) ; record ++ ) { std :: cout << " " << record << " " ; std :: cout << " " << temperature_weights [ record ] ; std :: cout << " \n " ; } }
this function is used only for debugging purposes
this function is used only for debugging purposes