#include "implicit_f.inc"
Go to the source code of this file.
|
| subroutine | storth3 (jft, jlt, nel, g1x, g1y, g1z, g2x, g2y, g2z, g3x, g3y, g3z, gama, isorth) |
◆ 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.
36
37
38
39#include "implicit_f.inc"
40
41
42
43 INTEGER, INTENT(IN) :: ISORTH
44 INTEGER JFT, JLT ,NEL
45
47 . g1x(*),g1y(*),g1z(*),
48 . g2x(*),g2y(*),g2z(*),g3x(*),g3y(*),g3z(*),gama(nel,6)
49
50
51
52
53
54
55 INTEGER I
56
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
82
83 RETURN