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 (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 ( 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 : noda_pext_g, noda_surf_g
60 use output_mod , only : noda_pext, noda_surf
61 use output_mod , only : anim_has_noda_pext, h3d_has_noda_pext
63! ----------------------------------------------------------------------------------------------------------------------
64! Implicit none
65! ----------------------------------------------------------------------------------------------------------------------
66 implicit none
67! ----------------------------------------------------------------------------------------------------------------------
68! Arguments
69! ----------------------------------------------------------------------------------------------------------------------
70 LOGICAL,INTENT(IN) :: TRIGGER_ANIM
71 LOGICAL,INTENT(IN) :: TRIGGER_H3D
72 LOGICAL,INTENT(IN) :: TRIGGER_TH
73 INTEGER,INTENT(IN) :: NSPMD
74 INTEGER,INTENT(IN) :: NUMNOD
75 INTEGER,INTENT(IN) :: NUMNODG
76 TYPE(NODAL_ARRAYS_), INTENT(IN) :: NODES
77! ----------------------------------------------------------------------------------------------------------------------
78! Local variables
79! ----------------------------------------------------------------------------------------------------------------------
80 INTEGER :: LENR
81! ----------------------------------------------------------------------------------------------------------------------
82! Body
83! ----------------------------------------------------------------------------------------------------------------------
84 IF(th_has_noda_pext > 0 .OR. anim_has_noda_pext > 0 .OR. 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(noda_pext, nodes%BOUNDARY_ADD, nodes%BOUNDARY, lenr, nodes%WEIGHT)
90 CALL spmd_exch_nodarea(noda_surf, nodes%BOUNDARY_ADD, nodes%BOUNDARY, lenr, nodes%WEIGHT)
91 !send everything to node 0 in global array (ANIM)
92 IF(anim_has_noda_pext > 0)THEN
93 CALL spmd_gather_nodal_scalar(noda_pext_g, numnodg, noda_pext, numnod, nodes%WEIGHT, nodes%NODGLOB) !NODGLOB :id_loc -> id_glob
94 CALL spmd_gather_nodal_scalar(noda_surf_g, numnodg, noda_surf, numnod, nodes%WEIGHT, nodes%NODGLOB)
95 END IF
96 ELSE
97 IF(anim_has_noda_pext > 0)THEN
98 !in this case numnodg = numnod
99 noda_pext_g(1:numnod) = noda_pext(1:numnod)
100 noda_surf_g(1:numnod) = noda_surf(1:numnod)
101 END IF
102 ENDIF
103 ENDIF
104 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)