OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
tagnod.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!|| tagnod ../starter/source/groups/tagnod.F
25!||--- called by ------------------------------------------------------
26!|| hm_lecgrn ../starter/source/groups/hm_lecgrn.F
27!||====================================================================
28 SUBROUTINE tagnod(IX,NIX,NIX1,NIX2,NUMEL,IPARTE,TAGBUF,NPART)
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C D u m m y A r g u m e n t s
35C-----------------------------------------------
36 INTEGER NIX,IX(NIX,*),NIX1,NIX2,NUMEL,IPARTE(*),
37 1 TAGBUF(*),NPART
38C-----------------------------------------------
39C L o c a l V a r i a b l e s
40C-----------------------------------------------
41 INTEGER J,L
42C=======================================================================
43 DO j=1,numel
44 IF (tagbuf(iparte(j)) == 1)THEN
45 DO l=nix1,nix2
46 tagbuf(ix(l,j)+npart)=1
47 ENDDO
48 ENDIF
49 ENDDO
50 DO j=1,numel
51 IF (tagbuf(iparte(j)) == -1)THEN
52 DO l=nix1,nix2
53 tagbuf(ix(l,j)+npart)=0
54 ENDDO
55 ENDIF
56 ENDDO
57C-----------
58 RETURN
59 END
60!||====================================================================
61!|| tagnods ../starter/source/groups/tagnod.F
62!||--- called by ------------------------------------------------------
63!|| hm_lecgrn ../starter/source/groups/hm_lecgrn.F
64!||--- uses -----------------------------------------------------
65!|| message_mod ../starter/share/message_module/message_mod.F
66!||====================================================================
67 SUBROUTINE tagnods(IXS,IXS10,IXS20,IXS16,IPARTS,TAGBUF,IDGRN,TITR)
68 USE message_mod
70C-----------------------------------------------
71C I m p l i c i t T y p e s
72C-----------------------------------------------
73#include "implicit_f.inc"
74C-----------------------------------------------
75C C o m m o n B l o c k s
76C-----------------------------------------------
77#include "com04_c.inc"
78C-----------------------------------------------
79C D u m m y A r g u m e n t s
80C-----------------------------------------------
81 INTEGER IXS(NIXS,*),IPARTS(*),IXS10(6,*),IXS20(12,*),IXS16(8,*),
82 1 TAGBUF(*),IDGRN
83 CHARACTER(LEN=NCHARTITLE) :: TITR
84C-----------------------------------------------
85C L o c a l V a r i a b l e s
86C-----------------------------------------------
87 INTEGER I,J,L,ITETRA10
88C=======================================================================
89 DO j=1,numels8
90 IF (tagbuf(iparts(j)) == 1)THEN
91 DO l=2,9
92 tagbuf(ixs(l,j)+npart)=1
93 ENDDO
94 ENDIF
95 ENDDO
96 DO j=1,numels8
97 IF (tagbuf(iparts(j)) == -1)THEN
98 DO l=2,9
99 tagbuf(ixs(l,j)+npart)=0
100 ENDDO
101 ENDIF
102 ENDDO
103 itetra10=0
104C-----------
105 DO i=1,numels10
106 j = i + numels8
107 IF (tagbuf(iparts(j)) == 1)THEN
108 itetra10=itetra10+1
109 DO l=2,9
110 tagbuf(ixs(l,j)+npart)=1
111 ENDDO
112 DO l=1,6
113 IF (ixs10(l,i) /= 0) tagbuf(ixs10(l,i)+npart)=1
114 ENDDO
115 ENDIF
116 ENDDO
117 DO i=1,numels10
118 j = i + numels8
119 IF (tagbuf(iparts(j)) == -1)THEN
120 itetra10=itetra10+1
121 DO l=2,9
122 tagbuf(ixs(l,j)+npart)=0
123 ENDDO
124 DO l=1,6
125 IF (ixs10(l,i) /= 0) tagbuf(ixs10(l,i)+npart)=1
126 ENDDO
127 ENDIF
128 ENDDO
129C-----------
130 DO i=1,numels20
131 j = i + numels8 + numels10
132 IF (tagbuf(iparts(j)) == 1)THEN
133 DO l=2,9
134 tagbuf(ixs(l,j)+npart)=1
135 ENDDO
136 DO l=1,12
137 IF (ixs20(l,i) /= 0) tagbuf(ixs20(l,i)+npart)=1
138 ENDDO
139 ENDIF
140 ENDDO
141 DO i=1,numels20
142 j = i + numels8 + numels10
143 IF (tagbuf(iparts(j)) == -1)THEN
144 DO l=2,9
145 tagbuf(ixs(l,j)+npart)=0
146 ENDDO
147 DO l=1,12
148 IF (ixs20(l,i) /= 0) tagbuf(ixs20(l,i)+npart)=1
149 ENDDO
150 ENDIF
151 ENDDO
152C-----------
153 DO i=1,numels16
154 j = i + numels8 + numels10 + numels20
155 IF (tagbuf(iparts(j)) == 1)THEN
156 DO l=2,9
157 tagbuf(ixs(l,j)+npart)=1
158 ENDDO
159 DO l=1,8
160 IF (ixs16(l,i) /= 0) tagbuf(ixs16(l,i)+npart)=1
161 ENDDO
162 ENDIF
163 ENDDO
164 DO i=1,numels16
165 j = i + numels8 + numels10 + numels20
166 IF (tagbuf(iparts(j)) == -1)THEN
167 DO l=2,9
168 tagbuf(ixs(l,j)+npart)=0
169 ENDDO
170 DO l=1,8
171 IF (ixs16(l,i) /= 0) tagbuf(ixs16(l,i)+npart)=1
172 ENDDO
173 ENDIF
174 ENDDO
175C-----------
176 RETURN
177 END
integer, parameter nchartitle
subroutine tagnod(ix, nix, nix1, nix2, numel, iparte, tagbuf, npart)
Definition tagnod.F:29
subroutine tagnods(ixs, ixs10, ixs20, ixs16, iparts, tagbuf, idgrn, titr)
Definition tagnod.F:68