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

Go to the source code of this file.

Functions/Subroutines

subroutine storth3 (jft, jlt, nel, g1x, g1y, g1z, g2x, g2y, g2z, g3x, g3y, g3z, gama, isorth)

Function/Subroutine Documentation

◆ storth3()

subroutine storth3 ( integer jft,
integer jlt,
integer nel,
g1x,
g1y,
g1z,
g2x,
g2y,
g2z,
g3x,
g3y,
g3z,
gama,
integer, intent(in) isorth )

Definition at line 31 of file storth3.F.

36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER, INTENT(IN) :: ISORTH
44 INTEGER JFT, JLT ,NEL
45C REAL
47 . g1x(*),g1y(*),g1z(*),
48 . g2x(*),g2y(*),g2z(*),g3x(*),g3y(*),g3z(*),gama(nel,6)
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I
56C=======================================================================
57 IF (isorth == 1) THEN
58 DO i=jft,jlt
59 g1x(i)=gama(i,1)
60 g1y(i)=gama(i,2)
61 g1z(i)=gama(i,3)
62 g2x(i)=gama(i,4)
63 g2y(i)=gama(i,5)
64 g2z(i)=gama(i,6)
65 g3x(i)=g1y(i)*g2z(i)-g1z(i)*g2y(i)
66 g3y(i)=g1z(i)*g2x(i)-g1x(i)*g2z(i)
67 g3z(i)=g1x(i)*g2y(i)-g1y(i)*g2x(i)
68 ENDDO
69 ELSE
70 DO i=jft,jlt
71 g1x(i)=one
72 g1y(i)=zero
73 g1z(i)=zero
74 g2x(i)=zero
75 g2y(i)=one
76 g2z(i)=zero
77 g3x(i)=zero
78 g3y(i)=zero
79 g3z(i)=one
80 ENDDO
81 ENDIF
82C-----------
83 RETURN
#define my_real
Definition cppsort.cpp:32