MONC
Functions/Subroutines
test_maths_mod Module Reference

Functions/Subroutines

subroutine test_random
 
subroutine test_randomness
 

Function/Subroutine Documentation

◆ test_random()

subroutine test_maths_mod::test_random ( )

Definition at line 13 of file test_maths.F90.

13 
14  integer :: idum
15  real :: res
16 
17  res = 0.0
18  idum = 0
19  res = random(idum)
20 
21  call assert_not_equals(res, 0.0, "Result is not 0")
22 
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_randomness()

subroutine test_maths_mod::test_randomness ( )

Definition at line 27 of file test_maths.F90.

27 
28  integer :: idum
29  real :: res1, res2
30 
31  res1 = 0.0
32  res2 = 0.0
33  idum = -4
34  res1 = random(idum)
35  res2 = random(idum)
36  call assert_not_equals(res1, res2, &
37  "Result are not equal")
38 
Here is the call graph for this function:
Here is the caller graph for this function: