Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
g7fernandes committed Jan 14, 2020
1 parent 75f83bb commit 2640a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion linkedlist.f90
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,4 @@ end function list_get
! logical :: a
! if


end module linkedlist
4 changes: 2 additions & 2 deletions randnormal.f90
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ function GaussDeviate()

if (.not. iset) then
do while (r >= 1)
! gerar números aleatórios entre -1 e 1
! Generate random numbers between -1 e 1
call random_seed()
call random_number(a1)
call random_number(a2)
a1 = 2*a1-1
a2 = 2*a2-1
r = a1**2 + a2**2
end do
s = sqrt(-2*log(r)/r) !transformação polar
s = sqrt(-2*log(r)/r) ! polar transformation
b1 = a1*s
b2 = a2*s
iset = .true.
Expand Down

0 comments on commit 2640a62

Please sign in to comment.