mirror of
https://github.com/NGSolve/netgen.git
synced 2025-03-04 08:55:38 +05:00
Print errors to stderr
This commit is contained in:
parent
7b4a0daf94
commit
2e71c78238
@ -203,19 +203,19 @@ namespace netgen
|
|||||||
QuickSort(nelpts);
|
QuickSort(nelpts);
|
||||||
if (check_points != nelpts)
|
if (check_points != nelpts)
|
||||||
{
|
{
|
||||||
cout << __FILE__ << ":" << __LINE__ << "\tFound error" << endl;
|
cerr << __FILE__ << ":" << __LINE__ << "\tFound error" << endl;
|
||||||
cout << "i = " << i << endl;
|
cerr << "i = " << i << endl;
|
||||||
cout << "oldpi = " << oldpi << endl;
|
cerr << "oldpi = " << oldpi << endl;
|
||||||
cout << "newpi = " << newpi << endl;
|
cerr << "newpi = " << newpi << endl;
|
||||||
cout << "Elements: " << endl;
|
cerr << "Elements: " << endl;
|
||||||
cout << "nel " << nel << endl;
|
cerr << "nel " << nel << endl;
|
||||||
for (auto ei : hasbothpoints)
|
for (auto ei : hasbothpoints)
|
||||||
cout << mesh[ei] << endl;
|
cerr << mesh[ei] << endl;
|
||||||
cout << endl;
|
cerr << endl;
|
||||||
cout << "check_points: " << check_points << endl;
|
cerr << "check_points: " << check_points << endl;
|
||||||
cout << "nelpts: " << nelpts << endl;
|
cerr << "nelpts: " << nelpts << endl;
|
||||||
cout << "hasbothpoints: " << hasbothpoints << endl;
|
cerr << "hasbothpoints: " << hasbothpoints << endl;
|
||||||
cout << "suroundpts: " << suroundpts << endl;
|
cerr << "suroundpts: " << suroundpts << endl;
|
||||||
throw Exception("Found error");
|
throw Exception("Found error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -223,11 +223,11 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
if (suroundpts.Last() != suroundpts[0])
|
if (suroundpts.Last() != suroundpts[0])
|
||||||
{
|
{
|
||||||
cout << __FILE__ << ":" << __LINE__ << "\tFound error" << endl;
|
cerr << __FILE__ << ":" << __LINE__ << "\tFound error" << endl;
|
||||||
cout << "hasbothpoints: " << hasbothpoints << endl;
|
cerr << "hasbothpoints: " << hasbothpoints << endl;
|
||||||
cout << "suroundpts: " << suroundpts << endl;
|
cerr << "suroundpts: " << suroundpts << endl;
|
||||||
for (auto ei : hasbothpoints)
|
for (auto ei : hasbothpoints)
|
||||||
cout << mesh[ei] << endl;
|
cerr << mesh[ei] << endl;
|
||||||
throw Exception("Found error");
|
throw Exception("Found error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user