Some progress
Fixed an issue with random integer numbers.
Cylindrical coordinates are not perfect yet:
- Box (cylinder) with initial constant density loses particles at r =
0
- Injection density still low in r = 0
This commit is contained in:
parent
6b5ac16e4b
commit
626e970d82
5 changed files with 31 additions and 8 deletions
|
|
@ -43,7 +43,7 @@ MODULE moduleRandom
|
|||
rnd = 0
|
||||
CALL RANDOM_NUMBER(rnd01)
|
||||
|
||||
rnd = NINT(REAL(b - a) * rnd01) + a
|
||||
rnd = a + FLOOR((b+1-a)*rnd01)
|
||||
|
||||
END FUNCTION randomIntAB
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue