summaryrefslogtreecommitdiff
path: root/map65/libm65/noisegen.f90
blob: 1c2b19def752d1904dbda9c4797e1cace2ac57cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module noisegen_mod
  implicit none
contains
  subroutine noisegen(d4,nmax)
    use iso_c_binding, only: c_ptr, c_loc, c_float
    use gran_interface
    use iso_fortran_env, only: real32
    implicit none
  
    integer, intent(in) :: nmax
    real(real32), intent(out) :: d4(4,nmax)
    integer :: i
  
    do i=1,nmax
       d4(1,i)=gran()
       d4(2,i)=gran()
       d4(3,i)=gran()
       d4(4,i)=gran()
    enddo
  
  end subroutine noisegen
end module noisegen_mod