OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_exch_output_noda_pext_mod Module Reference

Functions/Subroutines

subroutine spmd_exch_output_noda_pext (output, nspmd, nodes, numnod, numnodg, trigger_th, trigger_anim, trigger_h3d)

Function/Subroutine Documentation

◆ spmd_exch_output_noda_pext()

subroutine spmd_exch_output_noda_pext_mod::spmd_exch_output_noda_pext ( type(output_), intent(inout) output,
integer, intent(in) nspmd,
type(nodal_arrays_), intent(in) nodes,
integer, intent(in) numnod,
integer, intent(in) numnodg,
logical, intent(in) trigger_th,
logical, intent(in) trigger_anim,
logical, intent(in) trigger_h3d )

Definition at line 49 of file spmd_exch_output_noda_pext.F.

53! ----------------------------------------------------------------------------------------------------------------------
54! Modules
55! ----------------------------------------------------------------------------------------------------------------------
56 use th_mod , only : th_has_noda_pext
57 use nodal_arrays_mod , only : nodal_arrays_
58 use constant_mod , only : zero
59 use output_mod , only : output_
61! ----------------------------------------------------------------------------------------------------------------------
62! Implicit none
63! ----------------------------------------------------------------------------------------------------------------------
64 implicit none
65! ----------------------------------------------------------------------------------------------------------------------
66! Arguments
67! ----------------------------------------------------------------------------------------------------------------------
68 TYPE(OUTPUT_), INTENT(INOUT) :: OUTPUT
69 LOGICAL,INTENT(IN) :: TRIGGER_ANIM
70 LOGICAL,INTENT(IN) :: TRIGGER_H3D
71 LOGICAL,INTENT(IN) :: TRIGGER_TH
72 INTEGER,INTENT(IN) :: NSPMD
73 INTEGER,INTENT(IN) :: NUMNOD
74 INTEGER,INTENT(IN) :: NUMNODG
75 TYPE(NODAL_ARRAYS_), INTENT(IN) :: NODES
76! ----------------------------------------------------------------------------------------------------------------------
77! Local variables
78! ----------------------------------------------------------------------------------------------------------------------
79 INTEGER :: LENR
80! ----------------------------------------------------------------------------------------------------------------------
81! Body
82! ----------------------------------------------------------------------------------------------------------------------
83 IF(th_has_noda_pext > 0 .OR. output%DATA%ANIM_HAS_NODA_PEXT > 0
84 . .OR. output%DATA%H3D_HAS_NODA_PEXT > 0 )THEN
85 IF(trigger_anim .OR. trigger_th .OR. trigger_h3d)THEN
86 IF(nspmd > 1)THEN
87 lenr = nodes%BOUNDARY_ADD(1,nspmd+1)-nodes%BOUNDARY_ADD(1,1)
88 !exchange between domains which have common nodes
89 CALL spmd_exch_nodarea(output%DATA%NODA_PEXT, nodes%BOUNDARY_ADD, nodes%BOUNDARY, lenr, nodes%WEIGHT)
90 CALL spmd_exch_nodarea(output%DATA%NODA_SURF, nodes%BOUNDARY_ADD, nodes%BOUNDARY, lenr, nodes%WEIGHT)
91 !send everything to node 0 in global array (ANIM)
92 IF(output%DATA%ANIM_HAS_NODA_PEXT > 0)THEN
93 CALL spmd_gather_nodal_scalar(output%DATA%NODA_PEXT_G,
94 . numnodg, output%DATA%NODA_PEXT, numnod, nodes%WEIGHT, nodes%NODGLOB) !NODGLOB :id_loc -> id_glob
95 CALL spmd_gather_nodal_scalar(output%DATA%NODA_SURF_G, numnodg,
96 . output%DATA%NODA_SURF, numnod, nodes%WEIGHT, nodes%NODGLOB)
97 END IF
98 ELSE
99 IF(output%DATA%ANIM_HAS_NODA_PEXT > 0)THEN
100 !in this case numnodg = numnod
101 output%DATA%NODA_PEXT_G(1:numnod) = output%DATA%NODA_PEXT(1:numnod)
102 output%DATA%NODA_SURF_G(1:numnod) = output%DATA%NODA_SURF(1:numnod)
103 END IF
104 ENDIF
105 ENDIF
106 ENDIF
subroutine spmd_gather_nodal_scalar(v_glob, num, v, numnod, weight, nodglob)
integer th_has_noda_pext
Definition th_mod.F:121
subroutine spmd_exch_nodarea(nodarea, iad_elem, fr_elem, lenr, weight)