OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
lgmini_mpc.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!|| lgmini_mpc ../starter/source/tools/lagmul/lgmini_mpc.F
25!||--- called by ------------------------------------------------------
26!|| lagm_ini ../starter/source/tools/lagmul/lagm_ini.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| fretitl2 ../starter/source/starter/freform.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE lgmini_mpc(IADLL ,JLL ,LLL ,IBUFNC ,IBUFNN ,
34 . IBUFDL ,IBUFSK ,NC, MASS, INER, ITAB ,
35 . NOM_OPT)
36 USE message_mod
38C----------------------------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER NC, IADLL(*), JLL(*), LLL(*),
46 . IBUFNC(*),IBUFNN(*),IBUFDL(*),IBUFSK(*),
47 . itab(*)
49 . mass(*), iner(*)
50 INTEGER NOM_OPT(LNOPT1,*)
51C-----------------------------------------------
52C C o m m o n B l o c k s
53C-----------------------------------------------
54#include "lagmult.inc"
55#include "param_c.inc"
56#include "scr17_c.inc"
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER I, J, IK, KF, NK, ISK, NN, NDL, NUMC
61 INTEGER ID
62 CHARACTER(LEN=NCHARTITLE) :: TITR
63C======================================================================|
64 kf = 0
65 DO i=1,nummpc
66 nc = nc + 1
67 ik = iadll(nc)-1
68 numc = ibufnc(i)
69 nk = 0
70 id=nom_opt(1,i)
71 CALL fretitl2(titr,nom_opt(lnopt1-ltitr+1,i),ltitr)
72 IF(nc>lag_ncf)THEN
73 CALL ancmsg(msgid=468,
74 . msgtype=msgerror,
75 . anmode=aninfo,
76 . i1=id,
77 . c1='MULTI-POINT CONSTRAINTS',
78 . c2='MULTI-POINT CONSTRAINTS',
79 . c3=titr)
80 ENDIF
81 DO j=1,numc
82 kf = kf+1
83 nn = ibufnn(kf)
84 ndl = ibufdl(kf)
85 isk = ibufsk(kf)
86C---
87 IF(mass(nn)==0.)THEN
88 CALL ancmsg(msgid=535,
89 . msgtype=msgerror,
90 . anmode=aninfo_blind_1,
91 . c1='MULTI-POINT CONSTRAINTS',
92 . i1=id,
93 . c2='MULTI-POINT CONSTRAINTS',
94 . c3=titr,c4=' ',
95 . i2=itab(nn))
96 ENDIF
97 IF(isk==1)THEN
98 nk = nk+1
99 ik = ik+1
100 lll(ik) = nn
101 jll(ik) = ndl
102 ELSE
103 nk = nk+3
104 IF (ndl<=3) THEN
105 ik = ik+1
106 lll(ik) = nn
107 jll(ik) = 1
108 ik = ik + 1
109 lll(ik) = nn
110 jll(ik) = 2
111 ik = ik + 1
112 lll(ik) = nn
113 jll(ik) = 3
114 ELSE
115 ik = ik+1
116 lll(ik) = nn
117 jll(ik) = 4
118 ik = ik + 1
119 lll(ik) = nn
120 jll(ik) = 5
121 ik = ik + 1
122 lll(ik) = nn
123 jll(ik) = 6
124 ENDIF
125 ENDIF
126 IF(ndl>3.AND.iner(nn)==0.)THEN
127 CALL ancmsg(msgid=536,
128 . msgtype=msgerror,
129 . anmode=aninfo_blind_1,
130 . c1='MULTI-POINT CONSTRAINTS',
131 . i1=id,
132 . c2='MULTI-POINT CONSTRAINTS',
133 . c3=titr,
134 . i2=itab(nn))
135 ENDIF
136 iadll(nc+1)=iadll(nc) + nk
137 IF(iadll(nc+1)-1>lag_nkf)THEN
138 CALL ancmsg(msgid=469,
139 . msgtype=msgerror,
140 . anmode=aninfo,
141 . i1=id,
142 . c1='MULTI-POINT CONSTRAINTS',
143 . c2='MULTI-POINT CONSTRAINTS',
144 . c3=titr)
145 ENDIF
146 ENDDO
147C
148 ENDDO
149C---
150 RETURN
151 END
#define my_real
Definition cppsort.cpp:32
subroutine lgmini_mpc(iadll, jll, lll, ibufnc, ibufnn, ibufdl, ibufsk, nc, mass, iner, itab, nom_opt)
Definition lgmini_mpc.F:36
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:895
subroutine fretitl2(titr, iasc, l)
Definition freform.F:799