vectro
C VECTRO SOURCE CHAT 07/10/22 21:18:14 5921 implicit real*8(a-h,o-z) implicit integer(i-n) * SUBROUTINE VECTROT(RR,X,NN) * * * IMPLICIT NONE * * * * REAL *8 RR(3,3) * INTEGER NN * * REAL *8 X(24) dimension RR(3,3),X(24) * * * * --- VARIABLES LOCALES * * REAL *8 AA(24),R(3,3) * INTEGER I,J dimension AA(24),R(3,3) * * IF(NN.EQ.2) THEN DO I=1,3 DO J=1,3 R(I,J)= RR(J,I) END DO END DO ELSEIF(NN.EQ.1) THEN DO I=1,3 DO J=1,3 R(I,J)= RR(I,J) END DO END DO ELSE STOP 'VECTROT' ENDIF * AA(1) = R(1,1)*X(1) + R(1,2)*X(2) + R(1,3)*X(3) AA(2) = R(2,1)*X(1) + R(2,2)*X(2) + R(2,3)*X(3) AA(3) = R(3,1)*X(1) + R(3,2)*X(2) + R(3,3)*X(3) * AA(4) = R(1,1)*X(4) + R(1,2)*X(5) + R(1,3)*X(6) AA(5) = R(2,1)*X(4) + R(2,2)*X(5) + R(2,3)*X(6) AA(6) = R(3,1)*X(4) + R(3,2)*X(5) + R(3,3)*X(6) * AA(7) = R(1,1)*X(7) + R(1,2)*X(8) + R(1,3)*X(9) AA(8) = R(2,1)*X(7) + R(2,2)*X(8) + R(2,3)*X(9) AA(9) = R(3,1)*X(7) + R(3,2)*X(8) + R(3,3)*X(9) * AA(10) = R(1,1)*X(10) + R(1,2)*X(11) + R(1,3)*X(12) AA(11) = R(2,1)*X(10) + R(2,2)*X(11) + R(2,3)*X(12) AA(12) = R(3,1)*X(10) + R(3,2)*X(11) + R(3,3)*X(12) * AA(13) = R(1,1)*X(13) + R(1,2)*X(14) + R(1,3)*X(15) AA(14) = R(2,1)*X(13) + R(2,2)*X(14) + R(2,3)*X(15) AA(15) = R(3,1)*X(13) + R(3,2)*X(14) + R(3,3)*X(15) * AA(16) = R(1,1)*X(16) + R(1,2)*X(17) + R(1,3)*X(18) AA(17) = R(2,1)*X(16) + R(2,2)*X(17) + R(2,3)*X(18) AA(18) = R(3,1)*X(16) + R(3,2)*X(17) + R(3,3)*X(18) * AA(19) = R(1,1)*X(19) + R(1,2)*X(20) + R(1,3)*X(21) AA(20) = R(2,1)*X(19) + R(2,2)*X(20) + R(2,3)*X(21) AA(21) = R(3,1)*X(19) + R(3,2)*X(20) + R(3,3)*X(21) * AA(22) = R(1,1)*X(22) + R(1,2)*X(23) + R(1,3)*X(24) AA(23) = R(2,1)*X(22) + R(2,2)*X(23) + R(2,3)*X(24) AA(24) = R(3,1)*X(22) + R(3,2)*X(23) + R(3,3)*X(24) * DO I=1,24 X(I)= AA(I) END DO * * END
© Cast3M 2003 - Tous droits réservés.
Mentions légales