From 4ad15ada1713f8bfd8aed4d48aadf9936e6d61d1 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 6 Jan 2021 18:46:42 +0100 Subject: Report stall to cerr instead of cout. --- langevin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langevin.cpp b/langevin.cpp index fa737cf..1b328b6 100644 --- a/langevin.cpp +++ b/langevin.cpp @@ -57,7 +57,7 @@ std::tuple 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); } } -- cgit v1.2.3-70-g09d2