OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_surfnod.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!|| hm_surfnod ../starter/source/groups/hm_surfnod.F
25!||--- called by ------------------------------------------------------
26!|| hm_lecgrn ../starter/source/groups/hm_lecgrn.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| hm_get_int_array_index ../starter/source/devtools/hm_reader/hm_get_int_array_index.F
30!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
31!||--- uses -----------------------------------------------------
32!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
33!|| message_mod ../starter/share/message_module/message_mod.F
34!|| submodel_mod ../starter/share/modules1/submodel_mod.F
35!||====================================================================
36 SUBROUTINE hm_surfnod(ID ,IGRSURF ,TAGBUF ,TITR ,NSETS ,LSUBMODEL)
37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE message_mod
41 USE groupdef_mod
42 USE submodel_mod
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52#include "com04_c.inc"
53C-----------------------------------------------
54C D u m m y A r g u m e n t s
55C-----------------------------------------------
56 INTEGER ID,TAGBUF(*),NSETS
57 CHARACTER(LEN=NCHARTITLE) :: TITR
58 TYPE(submodel_data) LSUBMODEL(*)
59C-----------------------------------------------
60 TYPE (SURF_) , DIMENSION(NSURF+NSETS) :: IGRSURF
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER J,IE,JREC,K,ISU,JJ,LL,N,KK,NENTITY
65 LOGICAL IS_AVAILABLE
66C=======================================================================
67 is_available = .false.
68 CALL hm_get_intv('idsmax' ,nentity,is_available,lsubmodel)
69 DO kk = 1,nentity
70 CALL hm_get_int_array_index ('ids',jj ,kk,is_available,lsubmodel)
71 IF (jj /= 0) THEN
72 isu=0
73 DO k=1,nsurf
74 IF (jj == igrsurf(k)%ID) isu=k
75 ENDDO
76 IF (isu /= 0) THEN
77 DO ll=1,igrsurf(isu)%NSEG
78 DO k=1,4
79 n=igrsurf(isu)%NODES(ll,k)
80C tag les noeuds DU SEGMENT
81 IF (n /= 0) tagbuf(n)=1
82 ENDDO
83 ENDDO
84 ELSE
85 CALL ancmsg(msgid=193,
86 . msgtype=msgwarning,
87 . anmode=aninfo,
88 . i1=id,
89 . c1=titr,
90 . i2=jj)
91 ENDIF
92 ENDIF
93 ENDDO
94C-----------
95 RETURN
96 END
subroutine hm_get_int_array_index(name, ival, index, is_available, lsubmodel)
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_surfnod(id, igrsurf, tagbuf, titr, nsets, lsubmodel)
Definition hm_surfnod.F:37
integer, parameter nchartitle
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889