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

Go to the source code of this file.

Functions/Subroutines

subroutine xyznor (xnorm)

Function/Subroutine Documentation

◆ xyznor()

subroutine xyznor ( xnorm)

Definition at line 30 of file xyznor.F.

31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35C-----------------------------------------------
36C D u m m y A r g u m e n t s
37C-----------------------------------------------
38C REAL
40 . xnorm(3,*)
41C REAL
43 . s3000,s
44 INTEGER I,INORM(3)
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "com04_c.inc"
49C-----------------------------------------------
50 s3000 = three1000
51C
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
64 CALL write_s_c(inorm,3)
65 100 CONTINUE
66C-----------------------------------------------
67 RETURN
#define my_real
Definition cppsort.cpp:32
void write_s_c(int *w, int *len)