fix: if cotpsi is larger than cotpsi_max, color is black

This commit is contained in:
2025-12-07 05:36:55 -05:00
parent 1e1c38da4e
commit 1819d58778
3 changed files with 4 additions and 1 deletions
-1
View File
@@ -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);