summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2020-12-21 11:25:40 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2020-12-21 11:25:40 -0500
commitca48f53e5a9ac415a6554f5fdfe88719beec7245 (patch)
treee794f6150c5b43452b9f3e56e6b3da69033c0539 /src
parente4ba0bb6aa38f352cf33be92c66f9c4dd4dec576 (diff)
downloadlossdistrib-ca48f53e5a9ac415a6554f5fdfe88719beec7245.tar.gz
fail earlyHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/lossdistrib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lossdistrib.c b/src/lossdistrib.c
index a9dc82c..c23cb5c 100644
--- a/src/lossdistrib.c
+++ b/src/lossdistrib.c
@@ -394,6 +394,9 @@ void recovdist(const double *dp, const double *pp, const int *n, const double *w
}
double shockprob(double p, double rho, double Z, int give_log){
+ if(rho > 1.) {
+ abort();
+ }
if(rho == 1.) {
if( give_log ) {
abort();