summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2021-01-06 18:46:42 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2021-01-06 18:46:42 +0100
commit4ad15ada1713f8bfd8aed4d48aadf9936e6d61d1 (patch)
treef6915313e49dfa57e4da41ad8ceb943a8f933a20
parent73d83b36352a6448c09e232581da7f2ae35299ef (diff)
downloadcode-4ad15ada1713f8bfd8aed4d48aadf9936e6d61d1.tar.gz
code-4ad15ada1713f8bfd8aed4d48aadf9936e6d61d1.tar.bz2
code-4ad15ada1713f8bfd8aed4d48aadf9936e6d61d1.zip
Report stall to cerr instead of cout.
-rw-r--r--langevin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/langevin.cpp b/langevin.cpp
index fa737cf..1b328b6 100644
--- a/langevin.cpp
+++ b/langevin.cpp
@@ -57,7 +57,7 @@ std::tuple<double, Vector> gradientDescent(const Tensor& J, const Vector& z0, do
}
if (γ < 1e-15) {
- std::cout << "Gradient descent stalled." << std::endl;
+ std::cerr << "Gradient descent stalled." << std::endl;
exit(1);
}
}