[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum » Codeing » FORTRAN 90 » How use Subroutines in fortran (How use Subroutines in fortran)
How use Subroutines in fortran
pradeepDate: Saturday, 05 April 14, 3:18 PM | Message # 1
pk
Group: Administrators
Messages: 82
Status: Offline

Code
program swapmain
implicit none
real :: a, b
! Read in two values
read(*,*) a, b
call swap(a,b)
write(*,*) a,b
contains
subroutine swap(x, y)
real :: x, y, temp
temp = x
x = y
y = temp
end subroutine swap
end program swapmain
 
boudouhissamDate: Monday, 24 April 17, 10:12 PM | Message # 2
Private
Group: Users
Messages: 1
Status: Offline
HELLO,  I HAVE A CODE FORTRAN , which calculate activity coefficients of binary solutions (Solid liquid Equilibria), i make some modification, the programm did not run ?!!
 i need some help
 
Forum » Codeing » FORTRAN 90 » How use Subroutines in fortran (How use Subroutines in fortran)
  • Page 1 of 1
  • 1
Search: