OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
prodAAT.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine prodaat (a, c, nel)

Function/Subroutine Documentation

◆ prodaat()

subroutine prodaat ( intent(in) a,
intent(out) c,
integer, intent(in) nel )

Definition at line 33 of file prodAAT.F.

34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38 INTEGER, INTENT(IN) :: NEL
39 my_real, DIMENSION(NEL,3, 3),INTENT(IN) :: a
40 my_real, DIMENSION(NEL,3, 3),INTENT(OUT) :: c
41C
42 INTEGER I
43C-----------------------------------------------
44 DO i =1, nel
45 c(i,1,1) = a(i,1,1)**2 + a(i,1,2)**2 + a(i,1,3)**2
46 c(i,2,2) = a(i,2,1)**2 + a(i,2,2)**2 + a(i,2,3)**2
47 c(i,3,3) = a(i,3,1)**2 + a(i,3,2)**2 + a(i,3,3)**2
48 c(i,1,2) = a(i,1,1)*a(i,2,1) + a(i,1,2)*a(i,2,2) + a(i,1,3)*a(i,2,3)
49 c(i,1,3) = a(i,1,1)*a(i,3,1) + a(i,1,2)*a(i,3,2) + a(i,1,3)*a(i,3,3)
50 c(i,2,3) = a(i,2,1)*a(i,3,1) + a(i,2,2)*a(i,3,2) + a(i,2,3)*a(i,3,3)
51 c(i,2,1) = c(i,1,2)
52 c(i,3,1) = c(i,1,3)
53 c(i,3,2) = c(i,2,3)
54 ENDDO
55C
56 RETURN
#define my_real
Definition cppsort.cpp:32