mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
moved debug code into #if section
This commit is contained in:
@@ -814,14 +814,18 @@ namespace Opm
|
|||||||
diag_ell -= matel;
|
diag_ell -= matel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define EXTRA_DEBUG_MSW 0
|
||||||
|
#if EXTRA_DEBUG_MSW
|
||||||
if(not(diag_ell > 0.0)){
|
if(not(diag_ell > 0.0)){
|
||||||
std::stringstream msg;
|
std::stringstream msg;
|
||||||
msg << "Diagonal element for cprw on "
|
msg << "Diagonal element for cprw on "
|
||||||
<< this->name()
|
<< this->name()
|
||||||
<< " is " << diag_ell;
|
<< " is " << diag_ell;
|
||||||
OpmLog::debug(msg.str());
|
OpmLog::warning(msg.str());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#undef EXTRA_DEBUG_MSW
|
||||||
jacobian[welldof_ind][welldof_ind] = diag_ell;
|
jacobian[welldof_ind][welldof_ind] = diag_ell;
|
||||||
}else{
|
}else{
|
||||||
jacobian[welldof_ind][welldof_ind] = 1.0; // maybe we could have used diag_ell if calculated
|
jacobian[welldof_ind][welldof_ind] = 1.0; // maybe we could have used diag_ell if calculated
|
||||||
@@ -1586,6 +1590,7 @@ namespace Opm
|
|||||||
sstr << " " << measure_history[i] << " \n";
|
sstr << " " << measure_history[i] << " \n";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#undef EXTRA_DEBUG_MSW
|
||||||
deferred_logger.debug(sstr.str());
|
deferred_logger.debug(sstr.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user