Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
program COMMBLO
implicit none
Integer::i,a
Real::AIC(10,10)
COMMON /TwoDimArray/ AIC
a=5
Call Calling2DimArray(a)
a=1
Call CallingCommBlock(a)
end program COMMBLO
!=================================
Subroutine Calling2DimArray(E)
implicit none
Integer::i,j,e,bound
Real::BIC(10,10) , BIC_automatic(e,e)
COMMON /TwoDimArray/ BIC
Open(Unit=3,File="BIC.TXT",status="old",Action="read")
Do i=1,10
read (Unit=3,fmt=*) (BIC(i,j),j=1,10)
End Do
print*, BIC(e,e)
End Subroutine Calling2DimArray
!=================================
Subroutine CallingCommBlock(ee)
implicit none
Integer::ee
Real::CIC(10,10)
COMMON /TwoDimArray/ CIC
print*, CIC(ee,ee)
End Subroutine CallingCommBlock
Real::CIC(10,10)
COMMON /TwoDimArray/ CIC
program COMMBLO
implicit none
Integer::i,a
include 'twodimarray.inc'
a=5
Call Calling2DimArray(a)
a=1
Call CallingCommBlock(a)
end program COMMBLO
!=================================
Subroutine Calling2DimArray(E)
implicit none
Integer::i,j,e,bound
Real::BIC_automatic(e,e)
include 'twodimarray.inc'
Open(Unit=3,File="BIC.TXT",status="old",Action="read")
Do i=1,10
read (Unit=3,fmt=*) (CIC(i,j),j=1,10)
End Do
print*, CIC(e,e)
End Subroutine Calling2DimArray
!=================================
Subroutine CallingCommBlock(ee)
implicit none
Integer::ee
include 'twodimarray.inc'
print*, CIC(ee,ee)
End Subroutine CallingCommBlock