Andrewgaven
Technical User
Hello all, i'm a newbie to fortran 90, i believe that there a mistake with my variable er3 declaration but i can't find it. my code is:
----------------------------------
SUBROUTINE BACKWARD(E,Y,p,L,k,pqr,O5,er5,er4,er3)
IMPLICIT NONE
INTEGER , INTENT(IN) :: p,k,L
INTEGER :: i,j,jo
REAL , INTENT(IN) :: E(p,k),Y(p,1),pqr(L**k,k+1),O5(1,p)
REAL , INTENT(OUT) :: er5(1,p),er4(L**k,p),er3(L**k,p)
REAL :: T(1,p),U(1,k+1),pal(L**k,2),pala(L**k,p)
REAL(kind=4) :: err
T=transpose(Y);
er5=-2*(T-O5);
U(1,k+1)=1.;
do j=1,p
er4,j)=(/ (er5(1,j), i=1,L**k) /)
do i=1,k
U(1,i)=E(j,i);
enddo
pala,j)=(/ (matmul(pqr,transpose(U))) /)
enddo
do i=1,L**k
er3(i,=(/ (er4(i,j)*pala(i,j), j=1,p)/)
enddo
do i=1,3
write(*,*) er3(i,
enddo
end SUBROUTINE
------------------------------
went executed this code shows the matrix er3 followed by
"fallo de segmentacion" (Spanish for "Segment fail").
Does anyone see anything wrong?
thanks in advance.
----------------------------------
SUBROUTINE BACKWARD(E,Y,p,L,k,pqr,O5,er5,er4,er3)
IMPLICIT NONE
INTEGER , INTENT(IN) :: p,k,L
INTEGER :: i,j,jo
REAL , INTENT(IN) :: E(p,k),Y(p,1),pqr(L**k,k+1),O5(1,p)
REAL , INTENT(OUT) :: er5(1,p),er4(L**k,p),er3(L**k,p)
REAL :: T(1,p),U(1,k+1),pal(L**k,2),pala(L**k,p)
REAL(kind=4) :: err
T=transpose(Y);
er5=-2*(T-O5);
U(1,k+1)=1.;
do j=1,p
er4,j)=(/ (er5(1,j), i=1,L**k) /)
do i=1,k
U(1,i)=E(j,i);
enddo
pala,j)=(/ (matmul(pqr,transpose(U))) /)
enddo
do i=1,L**k
er3(i,=(/ (er4(i,j)*pala(i,j), j=1,p)/)
enddo
do i=1,3
write(*,*) er3(i,
enddo
end SUBROUTINE
------------------------------
went executed this code shows the matrix er3 followed by
"fallo de segmentacion" (Spanish for "Segment fail").
Does anyone see anything wrong?
thanks in advance.