Aborting simulation when retention time and/or temperature exceed maximum values in the error model.

This commit is contained in:
Éder F. Zulian
2015-11-17 12:13:54 +01:00
parent 5ab6e88ab5
commit b7c4618778

View File

@@ -713,17 +713,14 @@ void errorModel::prepareWeakCells()
unsigned int errorModel::getNumberOfFlips(double temp, sc_time time)
{
// Check if the provided temperature and retention time are in a valid
// range that is covered by the input data stored in the errorMap.
// In case values are out of range the maximum values provided are used
// (saturation) and debug messages are generated to alert the user.
// range that is covered by the input data stored in the errorMap. In case
// of values out of the valid range the simulation will be aborted.
if (temp > maxTemperature) {
temp = maxTemperature;
//DebugManager::getInstance().printDebugMessage(name, "errormodel, temperature out of range.");
SC_REPORT_FATAL("errormodel","temperature out of range");
}
if (time > maxTime) {
time = maxTime;
//DebugManager::getInstance().printDebugMessage(name, "errormodel, time out of range.");
SC_REPORT_FATAL("errormodel","time out of range");
}
// Find nearest temperature: