OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_inter_lagmul.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_read_inter_lagmul ../starter/source/interfaces/reader/hm_read_inter_lagmul.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_interfaces ../starter/source/interfaces/reader/hm_read_interfaces.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| fretitl ../starter/source/starter/freform.F
30!|| hm_read_inter_lagmul_type02 ../starter/source/interfaces/int02/hm_read_inter_lagmul_type02.F
31!|| hm_read_inter_lagmul_type07 ../starter/source/interfaces/int07/hm_read_inter_lagmul_type07.F
32!|| hm_read_inter_lagmul_type16 ../starter/source/interfaces/int16/hm_read_inter_lagmul_type16.F
34!||--- uses -----------------------------------------------------
35!|| message_mod ../starter/share/message_module/message_mod.F
36!|| submodel_mod ../starter/share/modules1/submodel_mod.F
37!||====================================================================
39 1 IPARI ,STFAC ,FRIGAP ,IGRNOD ,IGRSURF ,
40 2 ILAGM ,NI ,NOM_OPT ,TITR ,DEF_INTER ,
41 3 IGRBRIC ,UNITAB ,LSUBMODEL ,NOINT ,KEY ,
42 4 NPARI ,NPARIR)
43C============================================================================
44C
45C-----------------------------------------------
46C M o d u l e s
47C-----------------------------------------------
48 USE unitab_mod
49 USE message_mod
50 USE groupdef_mod
53C-----------------------------------------------
54C I m p l i c i t T y p e s
55C-----------------------------------------------
56#include "implicit_f.inc"
57C-----------------------------------------------
58C C o m m o n B l o c k s
59C-----------------------------------------------
60#include "scr17_c.inc"
61C-----------------------------------------------
62C D u m m y A r g u m e n t s
63C-----------------------------------------------
64 INTEGER,INTENT(IN) :: NPARI, NPARIR !< array sizes IPARI and FRIGAP
65 INTEGER NOM_OPT(LNOPT1,*)
66 INTEGER ISU1,ISU2,ILAGM,NI,NOINT
67 INTEGER IPARI(NPARI),DEF_INTER(100)
68 my_real stfac
69 my_real frigap(nparir)
70 CHARACTER(LEN=NCHARTITLE)::TITR
71 CHARACTER(LEN=NCHARKEY)::KEY
72C-----------------------------------------------
73 TYPE (GROUP_) ,TARGET, DIMENSION(NGRNOD) :: IGRNOD
74 TYPE (GROUP_) ,TARGET, DIMENSION(NGRBRIC) :: IGRBRIC
75 TYPE (SURF_) ,TARGET , DIMENSION(NSURF) :: IGRSURF
76 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
77 TYPE(submodel_data) LSUBMODEL(NSUBMOD)
78C-----------------------------------------------
79C C o m m o n B l o c k s
80C-----------------------------------------------
81#include "com04_c.inc"
82#include "units_c.inc"
83C-----------------------------------------------
84C L o c a l V a r i a b l e s
85C-----------------------------------------------
86 INTEGER UID,NTYP,USR_TYP
87C=======================================================================
88C READING LAGRANGE MULTIPLIER INTERFACES (/INTER/LAGMUL/TYPE2,
89C /INTER/LAGMUL/TYPE7, /INTER/LAGMUL/TYPE16,/INTER/LAGMUL/TYPE17)
90C========================================================================
91C
92 ilagm = 1
93 ipari(33) = ilagm
94C
95 nom_opt(1,ni)=noint
96C
97 WRITE(iout,1000) noint,trim(titr)
98C---------------------------------------------------------------
99 CALL fretitl(titr,nom_opt(lnopt1-ltitr+1,ni),ltitr)
100C---------------------------------------------------------------
101C LAGMUL INTERFACES READING ROUTINES
102C-----------------------------
103 ntyp = 0
104 SELECT CASE(key(1:len_trim(key)))
105c------------------------------
106 CASE ('TYPE2')
107c------------------------------
108 ntyp = 2
110 1 ipari ,frigap ,noint ,
111 2 igrnod ,igrsurf ,def_inter ,titr ,unitab ,
112 3 lsubmodel ,npari ,nparir)
113c------------------------------
114 CASE ('TYPE7')
115c------------------------------
116 ntyp = 7
118 1 ipari ,stfac ,frigap ,noint ,
119 2 igrnod ,igrsurf , titr ,unitab ,lsubmodel )
120c------------------------------
121 CASE ('TYPE16')
122c------------------------------
123 ntyp = 16
125 . ipari ,stfac ,frigap ,noint ,
126 . igrnod ,igrbric ,lsubmodel )
127c------------------------------
128 CASE ('TYPE17')
129c------------------------------
130 ntyp = 17
132 . ipari ,stfac ,frigap ,noint ,
133 . igrbric ,lsubmodel )
134C---------------------------------------------------------------
135 END SELECT
136C---------------------------------------------------------------
137 usr_typ = ntyp
138 IF (usr_typ/=2.AND.usr_typ/=7.AND.usr_typ/=16.AND.usr_typ/=17) THEN
139 CALL ancmsg(msgid=486,msgtype=msgerror,anmode=aninfo,
140 . i1=noint,
141 . c1=titr,
142 . i2=ntyp)
143 ENDIF
144C
145 IF (stfac == zero ) stfac = one_fifth
146C
147C--------------------------------------------------------------
148 1000 FORMAT(/1x,' INTERFACE NUMBER :',i10,1x,a)
149C------------
150 RETURN
151 END
#define my_real
Definition cppsort.cpp:32
subroutine hm_read_inter_lagmul(ipari, stfac, frigap, igrnod, igrsurf, ilagm, ni, nom_opt, titr, def_inter, igrbric, unitab, lsubmodel, noint, key, npari, nparir)
subroutine hm_read_inter_lagmul_type02(ipari, frigap, noint, igrnod, igrsurf, def_inter, titr, unitab, lsubmodel, npari, nparir)
subroutine hm_read_inter_lagmul_type07(ipari, stfac, frigap, noint, igrnod, igrsurf, titr, unitab, lsubmodel)
subroutine hm_read_inter_lagmul_type16(ipari, stfac, frigap, noint, igrnod, igrbric, lsubmodel)
subroutine hm_read_inter_lagmul_type17(ipari, stfac, frigap, noint, igrbric, lsubmodel)
integer, parameter nchartitle
integer, parameter ncharkey
integer nsubmod
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
subroutine fretitl(titr, iasc, l)
Definition freform.F:620
program starter
Definition starter.F:39