OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sms_thbcs.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!|| sms_thbcs ../engine/source/ams/sms_thbcs.F
25!||--- called by ------------------------------------------------------
26!|| sms_mass_scale_2 ../engine/source/ams/sms_mass_scale_2.F
27!||--- calls -----------------------------------------------------
28!|| sms_bcs1th ../engine/source/ams/sms_bcs1th.F
29!||====================================================================
30 SUBROUTINE sms_thbcs(NODFT ,NODLAST,INDX1 ,ICODT ,ICODR ,
31 2 ISKEW ,SKEW ,A ,AR ,FTHREAC ,
32 3 NODREAC,CPTREAC)
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C C o m m o n B l o c k s
39C-----------------------------------------------
40#include "com01_c.inc"
41#include "param_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER NODLAST,INDX1(*),CPTREAC
46 INTEGER NODFT,ICODT(*),ICODR(*),ISKEW(*),NODREAC(*)
48 . a(3,*),ar(3,*),skew(lskew,*),fthreac(6,*)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I,J, N, K, ISK, LCOD, NINDX,
53 . INDX(1024),L,FLAG_MOM
54C-----------------------------------------------
55C
56 IF (cptreac >= 1) THEN
57 flag_mom = 0
58 DO 420 i = nodft,nodlast,1024
59 nindx = 0
60 DO 400 j=i,min(nodlast,i+1023)
61 n=indx1(j)
62 IF (icodt(n)/=0 .AND. nodreac(n)/=0)THEN
63 nindx = nindx + 1
64 indx(nindx) = n
65 ENDIF
66 400 CONTINUE
67 CALL sms_bcs1th(nindx ,indx ,iskew ,icodt ,a ,
68 2 skew ,fthreac,nodreac,flag_mom)
69 420 CONTINUE
70C
71 IF(iroddl/=0) THEN
72 flag_mom = 1
73 DO 440 i = nodft,nodlast,1024
74 nindx = 0
75 DO 430 j=i,min(nodlast,i+1023)
76 n=indx1(j)
77 IF (icodr(n)/=0 .AND. nodreac(n)>0)THEN
78 nindx = nindx + 1
79 indx(nindx) = n
80 ENDIF
81 430 CONTINUE
82 CALL sms_bcs1th(nindx,indx,iskew,icodr,ar,
83 & skew,fthreac,nodreac,flag_mom)
84 440 CONTINUE
85 ENDIF
86 ENDIF
87C
88 RETURN
89 END
90
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
subroutine sms_bcs1th(nindx, indx, iskew, icodt, a, skew, fthreac, nodreac, flag)
Definition sms_bcs1th.F:30
subroutine sms_thbcs(nodft, nodlast, indx1, icodt, icodr, iskew, skew, a, ar, fthreac, nodreac, cptreac)
Definition sms_thbcs.F:33