OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznor_crk.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "scr14_c.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine xyznor_crk (icrk, xnorm, nfnod_crkxfemg)

Function/Subroutine Documentation

◆ xyznor_crk()

subroutine xyznor_crk ( integer icrk,
xnorm,
integer nfnod_crkxfemg )

Definition at line 33 of file xyznor_crk.F.

34C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "com01_c.inc"
44#include "scr14_c.inc"
45#include "task_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER ICRK
50C REAL
52 . xnorm(3,*)
53C-----------------------------------------------
54C L O C A L V A R I A B L E S
55C-----------------------------------------------
56 INTEGER I,INORM(3),K,P,IXNN,ND,ARSZ,EMPL,NFNOD_CRKXFEMG
57 INTEGER, DIMENSION(:,:), ALLOCATABLE :: INORMAR
58C REAL
60 . s3000,s
61C=======================================================================
62 s3000 = three1000
63 ixnn = s3000
64 IF (fmt_ani == 4) ixnn=0
65C
66 IF (nspmd == 1) THEN
67 arsz = crknod(icrk)%CRKNUMNODS
68 ALLOCATE(inormar(3,arsz))
69 DO nd=1,arsz
70C EMPL = ND
71C S = SQRT(XNORM(1,ND)**2 + XNORM(2,ND)**2 + XNORM(3,ND)**2)
72 s = zero
73 IF(s /= zero)THEN
74C S = S3000 / S
75c INORMAR(1,EMPL) = XNORM(1,I) * S
76c INORMAR(2,EMPL) = XNORM(2,I) * S
77c INORMAR(3,EMPL) = XNORM(3,I) * S
78 ELSE
79 inormar(1,nd) = 0
80 inormar(2,nd) = 0
81 inormar(3,nd) = ixnn
82 END IF
83 END DO
84 CALL write_s_c(inormar,3*arsz)
85 DEALLOCATE(inormar)
86 ELSE
87 IF (ispmd==0) THEN
88 CALL spmd_wrt_crk_xyznor(icrk,xnorm,nfnod_crkxfemg)
89 ELSE
90 CALL spmd_wrt_crk_xyznor(icrk,xnorm,1)
91 ENDIF
92 END IF
93C-----------------------------------------------
94 RETURN
#define my_real
Definition cppsort.cpp:32
type(xfem_nodes_), dimension(:), allocatable crknod
subroutine spmd_wrt_crk_xyznor(icrk, xnorm, num)
void write_s_c(int *w, int *len)