mikibelavista
Technical User
- Jan 18, 2012
- 32
I am running a bash script,large code.I have problems with some arrays in this subroutine:
subroutine atupv(m,n,u,v)
include 'ray.par'
parameter(nnzmax=100000, ndmax=1000)
parameter(nsconst=3*nximax*nzimax,
+ nszero=7*nximax*nzimax,
+ nmmax=nximax*nzimax)
integer row(nnzmax+nszero),column(nnzmax+nszero)
real anz(nnzmax+nszero),u(m),v,sum(nmmax)
common /blk1/ anz,row,column,nnzero
do j=1,n
sum(j)=0.
end do
do i=1,nnzero
sum(column(i))=sum(column(i))+anz(i)*u(row(i))
end do
do j=1,n
v(j)=v(j)+sum(j)
end do
return
end
nsconst=450
nszero=1050
nmmax= 150
nnzero=2685
What should be dimension of array u?
subroutine atupv(m,n,u,v)
include 'ray.par'
parameter(nnzmax=100000, ndmax=1000)
parameter(nsconst=3*nximax*nzimax,
+ nszero=7*nximax*nzimax,
+ nmmax=nximax*nzimax)
integer row(nnzmax+nszero),column(nnzmax+nszero)
real anz(nnzmax+nszero),u(m),v,sum(nmmax)
common /blk1/ anz,row,column,nnzero
do j=1,n
sum(j)=0.
end do
do i=1,nnzero
sum(column(i))=sum(column(i))+anz(i)*u(row(i))
end do
do j=1,n
v(j)=v(j)+sum(j)
end do
return
end
nsconst=450
nszero=1050
nmmax= 150
nnzero=2685
What should be dimension of array u?