OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznod.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "com04_c.inc"
#include "task_c.inc"
#include "spmd_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine xyznod (x, x_temp, nodglob, weight)

Function/Subroutine Documentation

◆ xyznod()

subroutine xyznod ( x,
x_temp,
integer, dimension(*) nodglob,
integer, dimension(numnod) weight )

Definition at line 31 of file xyznod.F.

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
#define my_real
Definition cppsort.cpp:32
subroutine spmd_wrt_xyznod(x, weight, nodglob, num)
void write_r_c(float *w, int *len)