OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
elegror.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!|| elegror ../starter/source/groups/elegror.F
25!||--- called by ------------------------------------------------------
26!|| lecsec42 ../starter/source/tools/sect/hm_read_sect.F
27!|| lecsec4bolt ../starter/source/tools/sect/lecsec4bolt.F
28!||--- uses -----------------------------------------------------
29!|| message_mod ../starter/share/message_module/message_mod.F
30!||====================================================================
31 INTEGER FUNCTION elegror(IGU,IGRELE,NGRELE,MOT,
32 . IBUF,NIB,MESS,NFRAM,TAGELEMS,ISTYP,
33 . ID,TITR)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE message_mod
38 USE groupdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER igu,nib,ngrele,nfram,
51 . ibuf(nib,*),tagelems(*),istyp
52 INTEGER id
53C-----------------------------------------------
54 TYPE (group_) ,DIMENSION(NGRELE) :: igrele
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 CHARACTER mess*40,mot*4
59 INTEGER i,j,k,ig,l,ie,iadv
60 CHARACTER(LEN=NCHARTITLE) :: titr
61C-----------------------------------------------
62 elegror=0
63 IF(igu==0)RETURN
64C
65 ig=0
66 DO i=1,ngrele
67 IF(igrele(i)%ID==igu)ig=i
68 ENDDO
69C
70 IF(ig /= 0) THEN
71 IF (nfram > 0 .OR. istyp >= 1) THEN
72 DO l=1,igrele(ig)%NENTITY
73 ie=igrele(ig)%ENTITY(l)
74 IF ( tagelems(ie) /= 0 ) elegror = elegror + 1
75 ENDDO
76 ELSE
77 elegror=igrele(ig)%NENTITY
78 ENDIF
79 j = 0
80 IF (nfram > 0 .OR. istyp >= 1) THEN
81 DO i=1,igrele(ig)%NENTITY
82 IF (tagelems(igrele(ig)%ENTITY(i)) == 1 ) THEN
83 j = j + 1
84 ibuf(1,j)=igrele(ig)%ENTITY(i)
85 ENDIF
86 ENDDO
87 ELSE
88 DO i=1,igrele(ig)%NENTITY
89 ibuf(1,i)=igrele(ig)%ENTITY(i)
90 ENDDO
91 ENDIF
92 ELSE
93 elegror = 0
94 ENDIF
95C
96 RETURN
97 END
integer function elegror(igu, igrele, ngrele, mot, ibuf, nib, mess, nfram, tagelems, istyp, id, titr)
Definition elegror.F:34
initmumps id
integer, parameter nchartitle