summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-03 00:09:51 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-03 00:09:51 -0400
commit2bfb2a6daeb344e4a2a588200739200c35d147f5 (patch)
tree3fae4325aaac795aa694c48831863d4e0db8f282
parent0fb5be754c71bf854533988459d267498a837f1c (diff)
downloadc++-2bfb2a6daeb344e4a2a588200739200c35d147f5.tar.gz
c++-2bfb2a6daeb344e4a2a588200739200c35d147f5.tar.bz2
c++-2bfb2a6daeb344e4a2a588200739200c35d147f5.zip
added another warning
-rw-r--r--src/wolff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wolff.c b/src/wolff.c
index 9fb7eb3..b44ccab 100644
--- a/src/wolff.c
+++ b/src/wolff.c
@@ -247,6 +247,10 @@ int main(int argc, char *argv[]) {
printf("WARNING: correlation function never hit the noise floor.\n");
}
+ if (n < 1) {
+ printf("WARNING: correlation function only has one nonnegative term.\n");
+ }
+
double *conv_Gamma = get_convex_minorant(n, Gammas);
double ttau = - 0.5;