OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznod.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!|| xyznod ../engine/source/output/anim/generate/xyznod.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| spmd_wrt_xyznod ../engine/source/mpi/anim/spmd_wrt_xyznod.F
29!|| write_r_c ../common_source/tools/input_output/write_routtines.c
30!||====================================================================
31 SUBROUTINE xyznod(X,X_TEMP,NODGLOB,WEIGHT)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com01_c.inc"
40#include "com04_c.inc"
41#include "task_c.inc"
42#include "spmd_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER NODGLOB(*), WEIGHT(NUMNOD)
48 . x(3,*)
50 . x_temp(3,*)
51 REAL R4
52C-----------------------------------------------
53C L O C A L V A R I A B L E S
54C-----------------------------------------------
55 INTEGER I
56
57 IF (nspmd == 1) THEN
58 DO i=1,numnod
59 r4 = x(1,i)
60 CALL write_r_c(r4,1)
61 r4 = x(2,i)
62 CALL write_r_c(r4,1)
63 r4 = x(3,i)
64 CALL write_r_c(r4,1)
65 END DO
66 ELSE
67C le proc 0 a besoin d un tableau de taille numnodg pour reconstruire
68C le tableau global des X. LEs autres non. Cela evite une allocation dynamique
69
70 IF (ispmd==0) THEN
71 CALL spmd_wrt_xyznod(x,weight,nodglob,numnodg)
72 ELSE
73 CALL spmd_wrt_xyznod(x,weight,nodglob,1)
74 ENDIF
75 ENDIF
76 IF (nspmd == 1 .AND. numelig3d /= 0)THEN
77 DO i=1,64*numelig3d
78 r4 = x_temp(1,i)
79 CALL write_r_c(r4,1)
80 r4 = x_temp(2,i)
81 CALL write_r_c(r4,1)
82 r4 = x_temp(3,i)
83 CALL write_r_c(r4,1)
84 END DO
85 ENDIF
86
87C-----------------------------------------------
88 RETURN
89 END
#define my_real
Definition cppsort.cpp:32
subroutine xyznod(x, x_temp, nodglob, weight)
Definition xyznod.F:32
subroutine spmd_wrt_xyznod(x, weight, nodglob, num)
void write_r_c(float *w, int *len)