OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
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!|| thbcs ../engine/source/output/th/thbcs.f
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| bcs1th ../engine/source/output/th/bcs1th.F
29!||====================================================================
30 SUBROUTINE thbcs(NODFT ,NODLAST,ICODT ,ICODR ,ISKEW ,
31 2 SKEW ,A ,AR ,MS ,IN ,
32 3 FTHREAC,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,CPTREAC
46 INTEGER NODFT,NODLT,ICODT(*),ICODR(*),ISKEW(*),NODREAC(*)
48 . a(3,*), ar(3,*), ms(*),skew(lskew,*),
49 . fthreac(*),in(*)
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I, N, K, ISK, LCOD, NINDX,
54 . INDX(1024),L,J,FLAG_MOM
55C-----------------------------------------------
56C
57 IF (cptreac >= 1) THEN
58 flag_mom = 0
59 DO 420 i = nodft,nodlast,1024
60 nindx = 0
61 DO 400 n=i,min(nodlast,i+1023)
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 bcs1th(nindx,indx,iskew,icodt,
68 & a,skew,ms,fthreac,
69 & nodreac,flag_mom,in)
70 420 CONTINUE
71C
72 IF(iroddl/=0) THEN
73 flag_mom = 1
74 DO 440 i = nodft,nodlast,1024
75 nindx = 0
76 DO 430 n=i,min(nodlast,i+1023)
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 bcs1th(nindx,indx,iskew,icodr,
83 & ar,skew,ms,fthreac,
84 & nodreac,flag_mom,in)
85 440 CONTINUE
86 ENDIF
87 ENDIF
88C
89 RETURN
90 END
subroutine bcs1th(nindx, indx, iskew, icodt, a, skew, ms, fthreac, nodreac, flag, in)
Definition bcs1th.F:31
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
subroutine thbcs(nodft, nodlast, icodt, icodr, iskew, skew, a, ar, ms, in, fthreac, nodreac, cptreac)
Definition thbcs.F:33