OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznor_crk.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| xyznor_crk ../engine/source/output/anim/generate/xyznor_crk.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| spmd_wrt_crk_xyznor ../engine/source/mpi/anim/spmd_wrt_crk_xyznor.F
29!|| write_s_c ../common_source/tools/input_output/write_routtines.c
30!||--- uses -----------------------------------------------------
31!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
32!||====================================================================
33 SUBROUTINE xyznor_crk(ICRK,XNORM,NFNOD_CRKXFEMG)
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
95 END
#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)
subroutine xyznor_crk(icrk, xnorm, nfnod_crkxfemg)
Definition xyznor_crk.F:34