Commit 01d0acfc authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

refined k range is checked to actually be a range

parent 0e1b2ad8
......@@ -360,6 +360,8 @@ int main(int argc, char **argv)
fprintf(stderr, "Error: %s\n", errorMsg(status.error));
tacFree(&tac); return(3);
}
if(kmax<2.0*kmin) {kmax=2.0*kmin; kmin*=0.5;}
if(verbose>2) printf(" refined kmin := %g\n kmax := %g\n", kmin, kmax);
ret=spectralDExp(tac.x, tac.c[0].y, tac.w, tac.sampleNr, kmin, kmax, bfNr,
pk, pa, yfit, &status);
if(ret!=TPCERROR_OK) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment