Skip to content
Snippets Groups Projects
Commit 8d5148da authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Improve Debug output, by avoiding numerical dirt

parent af5981ee
No related branches found
No related tags found
No related merge requests found
......@@ -214,8 +214,9 @@ void MonotoneMGStep<MatrixType, VectorType>::iterate()
// Debug: is the current iterate really admissible?
for (size_t i=0; i<obstacles[level].size(); i++)
for (int j=0; j<VectorType::block_type::dimension; j++)
if ((*x[level])[i][j] < obstacles[level][i].lower(j)
|| (*x[level])[i][j] > obstacles[level][i].upper(j)) {
if (((*x[level])[i][j] - obstacles[level][i].lower(j)<-1e-14
|| (*x[level])[i][j] - obstacles[level][i].upper(j) >1e-14 )
&& (!(*this->ignoreNodesHierarchy_[level])[i][j])) {
std::cout << "Obstacle disregarded!\n";
std::cout << (*x[level])[i] << std::endl << obstacles[level][i] << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment