#include "implicit_f.inc"
#include "com04_c.inc"
Go to the source code of this file.
◆ xyznor()
| subroutine xyznor |
( |
| xnorm | ) |
|
Definition at line 30 of file xyznor.F.
31
32
33
34#include "implicit_f.inc"
35
36
37
38
40 . xnorm(3,*)
41
43 . s3000,s
44 INTEGER I,INORM(3)
45
46
47
48#include "com04_c.inc"
49
50 s3000 = three1000
51
52 DO 100 i=1,numnod
53 s = sqrt(xnorm(1,i)**2 + xnorm(2,i)**2 + xnorm(3,i)**2)
54 IF(s/=0.0)THEN
55 s = s3000 / s
56 inorm(1) = xnorm(1,i) * s
57 inorm(2) = xnorm(2,i) * s
58 inorm(3) = xnorm(3,i) * s
59 ELSE
60 inorm(1) = zero
61 inorm(2) = zero
62 inorm(3) = s3000
63 ENDIF
65 100 CONTINUE
66
67 RETURN
void write_s_c(int *w, int *len)