Closed tobson closed 7 years ago
This is just bad very bad naming convention which I also find confusing now. The variable Ux is not the x positions but an array uniformly distributed numbers used to calculate the values of the x-positions.
I will push a fix in a minute.
Also, I understand that Ux is an array of positions, but shouldn't it go 0 to Lx? Uy seems to do that (on one processor at least).
I see, so Uy was the actual y-coordinate in physical units but Ux was an array going from 0 to 1? That is confusing...
How about we rename Uy to y1? In analogy with how things are named in the InitialCondition class?
Yes, very confusing indeed. Your idea for renaming is obviously the correct way. I will fix it immediately.
@tberlok These lines of code appear to me to be only correct if
Lx=1
. Or is there something aboutfind_cdf()
that I don't understand?