OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dynain_node.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!|| dynain_node ../engine/source/output/dynain/dynain_node.F
25!||--- called by ------------------------------------------------------
26!|| gendynain ../engine/source/output/dynain/gendynain.F
27!||--- calls -----------------------------------------------------
28!|| spmd_dstat_vgath ../engine/source/mpi/output/spmd_stat.F
29!|| strs_txt50 ../engine/source/output/sta/sta_txt.F
30!||--- uses -----------------------------------------------------
31!|| state_mod ../common_source/modules/state_mod.F
32!||====================================================================
33 SUBROUTINE dynain_node(X ,NUMNOD ,ITAB ,ITABG ,LENG ,
34 . NODGLOB,WEIGHT ,NODTAG,DYNAIN_DATA)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE state_mod
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "units_c.inc"
47#include "task_c.inc"
48#include "spmd_c.inc"
49#include "com01_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER ITAB(*), NUMNOD,WEIGHT(*),ITABG(*),LENG,
54 . nodglob(*),nodtag(*)
56 . x(3,*)
57 TYPE (DYNAIN_DATABASE), INTENT(INOUT) :: DYNAIN_DATA
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER I , IERR
62 INTEGER , DIMENSION(:),ALLOCATABLE :: NODTAGLOB
63 my_real , DIMENSION(:,:),ALLOCATABLE :: vglob
64 CHARACTER*100 LINE
65C-----------------------------------------------
66
67 IF (nspmd > 1) THEN
68C-----------------------
69C Allocation Tabs
70C-----------------------
71 ALLOCATE(nodtaglob(leng),stat=ierr)
72 ALLOCATE(vglob(3,leng),stat=ierr)
73 CALL spmd_dstat_vgath(x,nodglob,weight,vglob,nodtag,
74 . nodtaglob)
75 IF (ispmd/=0) RETURN
76 ENDIF
77
78 IF(dynain_data%ZIPDYNAIN==0) THEN
79 WRITE(iudynain,'(A)')'*NODE'
80 WRITE(iudynain,'(2A)')'$ NID X',
81 . ' Y Z'
82 ELSE
83 WRITE(line,'(A)') '*NODE'
84 CALL strs_txt50(line,100)
85 WRITE(line,'(2A)')'$ NID X',
86 . ' Y Z'
87 CALL strs_txt50(line,100)
88 ENDIF
89 IF (nspmd == 1) THEN
90 DO i=1,numnod
91 IF(nodtag(i) /= 0) THEN
92 IF(dynain_data%ZIPDYNAIN==0) THEN
93 WRITE(iudynain,'(I8,1P3G16.9)')
94 . itab(i),x(1,i),x(2,i),x(3,i)
95 ELSE
96 WRITE(line,'(I8,1P3G16.9)')
97 . itab(i),x(1,i),x(2,i),x(3,i)
98 CALL strs_txt50(line,100)
99 ENDIF
100 END IF
101 END DO
102 ELSE
103 DO i=1,numnodg
104 IF(nodtaglob(i) /= 0) THEN
105 IF(dynain_data%ZIPDYNAIN==0) THEN
106 WRITE(iudynain,'(I8,1P3G16.9)')
107 . itabg(i),vglob(1,i),vglob(2,i),vglob(3,i)
108 ELSE
109 WRITE(line,'(I8,1P3G16.9)')
110 . itabg(i),vglob(1,i),vglob(2,i),vglob(3,i)
111 CALL strs_txt50(line,100)
112 ENDIF
113 ENDIF
114 END DO
115 ENDIF
116 IF (nspmd > 1) DEALLOCATE(vglob,nodtaglob)
117C-----------------------------------------------
118 RETURN
119 END
#define my_real
Definition cppsort.cpp:32
subroutine dynain_node(x, numnod, itab, itabg, leng, nodglob, weight, nodtag, dynain_data)
Definition dynain_node.F:35
subroutine spmd_dstat_vgath(v, nodglob, weight, vgath, nodtag, nodtaglob)
Definition spmd_stat.F:212
subroutine strs_txt50(text, length)
Definition sta_txt.F:87