Can someone please explain how to use the subroutine random_number? e.g.
program abcd
real :: a
call random_number(a)
print*, a
end program abcd
-------------------------------------
This simple program prints a random number but then every time you run the program, the random number is...
Hello, I don't have much experience with Fortran and I've never had this problem before:
module cg
use numeric_kinds
implicit none
contains
subroutine symgs(A,rk,n,zk)
integer, intent(in) :: n
real(dp), dimension(n,n), intent(in) :: A
real(dp), dimension(n), intent(in) :: rk
real(dp)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.