aboutsummaryrefslogtreecommitdiff
path: root/src/partial_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-03-15 11:46:40 +0100
committerThomas White <taw@physics.org>2013-04-17 17:33:49 +0200
commitd5bcdd268da3ed20609a390ed89ea8e61cc26cd7 (patch)
treea74da3b60aa5a01291a31860949502db62056bbc /src/partial_sim.c
parent9436a03fd02a464b1440f0b54cf9f3aaca5b2ded (diff)
partial_sim: Standard deviations can be zero
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r--src/partial_sim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 4fcbc823..87d30f39 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -445,7 +445,7 @@ int main(int argc, char *argv[])
ERROR("Invalid OSF standard deviation.\n");
return 1;
}
- if ( osf_stddev <= 0.0 ) {
+ if ( osf_stddev < 0.0 ) {
ERROR("Invalid OSF standard deviation.");
ERROR(" (must be positive).\n");
return 1;
@@ -458,7 +458,7 @@ int main(int argc, char *argv[])
ERROR("Invalid full standard deviation.\n");
return 1;
}
- if ( full_stddev <= 0.0 ) {
+ if ( full_stddev < 0.0 ) {
ERROR("Invalid full standard deviation.");
ERROR(" (must be positive).\n");
return 1;
@@ -471,7 +471,7 @@ int main(int argc, char *argv[])
ERROR("Invalid noise standard deviation.\n");
return 1;
}
- if ( noise_stddev <= 0.0 ) {
+ if ( noise_stddev < 0.0 ) {
ERROR("Invalid noise standard deviation.");
ERROR(" (must be positive).\n");
return 1;