Hi, sorry to bother you again.
When I use your FDM code to solve ODEs, I recently noticed that, in some cases, the specified boundary conditions cannot be reached in the end. A MWE is as follows.
I only want vanishing Dirichlet right bc. And I neglect the left bc since it is 1st order. You can see the right bc is not satisfied in general.
eps0 = 1*^-10; domain = {eps, Rcutoff}; points = 600; difforder = 4; lbcvalue = 1; rbcvalue = 0;
m = 1.0; A[l_, r_] := l/r;
Fop1[y_, l_, pm_] := I (-D[y, r] + pm A[l, r] y);