Closed gialbokhary closed 11 years ago
Sorry, the program name above is written incorrect and the right is: DSMC0.FOR
I'd have to give a closer look, but my guess would be to avoid summation truncation.
No, I don't think so, I mean the reason is not to avoid truncation for two reasons: 1- If it desired to avoid truncation then the array CS most be of type integer and it is double precision type and, 2- We had assigned the value 0.5 not 1.E-6 at the beginning.
It seems to be used as a numerical safeguard so we aren't dividing integer by integer [Line 758 VEL(K)=CS(K+1,N,L)/CS(1,N,L)].
Hello every one. I'm confused about some matter. Consider for example the array CS(1,N) of program DSMC.FOR line 303 this array used to make a summation and most be initiated by zero but this hasn't done instead it has been initiated by very small number 1.E-6 as CS(1,N,L)=1.E-6. So my question is why?