-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
program to print out the integer k generated by ran_unif
see #495 for discussion on cce compiler
- Loading branch information
1 parent
502af78
commit f831380
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
program test_ran_unif | ||
|
||
use random_seq_mod, only : ran_unif, init_ran, random_seq_type | ||
use types_mod, only : r8 | ||
implicit none | ||
|
||
integer :: seed, i | ||
type(random_seq_type) :: r | ||
real(r8) :: real_random_number | ||
|
||
seed = 13 | ||
|
||
call init_ran(r, seed) | ||
|
||
do i = 1, 11 | ||
real_random_number = ran_unif(r) | ||
enddo | ||
|
||
end program test_ran_unif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ test_hist | |
test_inv_gamma | ||
test_random | ||
test_reseed | ||
test_ran_unif | ||
) | ||
|
||
|
||
|