fix: if cotpsi is larger than cotpsi_max, color is black
This commit is contained in:
@@ -145,7 +145,6 @@ int init(double rmax, double rela_err_limit, int *size, double **x, double **y){
|
||||
double cotpsi_min = 1/rmax;
|
||||
sample.x[0] = cotpsi_min;
|
||||
sample.y[0] = chi(cotpsi_min);
|
||||
double cotpsi_max = sqrt(R0*R0/(bmin*bmin*f(R0)) - 1);
|
||||
double chi_cotpsimax = chi(cotpsi_max);
|
||||
|
||||
refine_interval(cotpsi_min, cotpsi_max, sample.y[0], chi_cotpsimax, rela_err_limit, &sample, 1);
|
||||
|
||||
Reference in New Issue
Block a user