OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
bcsn.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!|| bcsn ../engine/source/constraints/general/bcs/bcsn.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||====================================================================
28 SUBROUTINE bcsn(ICODE,ICODT,ICODR,PARTS0,PARTSAV)
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C C o m m o n B l o c k s
35C-----------------------------------------------
36#include "com01_c.inc"
37#include "com04_c.inc"
38#include "param_c.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
43 . partsav(npsav,*),parts0(*)
44 INTEGER ICODE(*), ICODT(*), ICODR(*)
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER I,N, IC, IC1, IC2, IC3, IC4
49C-----------------------------------------------
50C
51 DO 10 n=1,numnod
52 icode(n)=icode(n)+512*(icodt(n)-icode(n)/512)
53 10 CONTINUE
54C
55 IF(iroddl>0)THEN
56 DO 20 n=1,numnod
57 ic=icode(n)
58 ic1=ic/512
59 ic2=(ic-512*ic1)/64
60 ic3=(ic-512*ic1-64*ic2)/8
61 ic4=(ic-512*ic1-64*ic2-8*ic3)
62 ic2=icodr(n)
63 icode(n)=512*ic1+64*ic2+8*ic3+ic4
64 20 CONTINUE
65 END IF
66C
67 IF(iale>0) THEN
68 DO 30 n=1,numnod
69 ic=icode(n)
70 ic1=ic/512
71 ic2=(ic-512*ic1)/64
72 ic3=(ic-512*ic1-64*ic2)/8
73 ic4=(ic-512*ic1-64*ic2-8*ic3)
74 ic3=icodt(n+numnod)
75 icode(n)=512*ic1+64*ic2+8*ic3+ic4
76 30 CONTINUE
77 DO 40 n=1,numnod
78 ic=icode(n)
79 ic1=ic/512
80 ic2=(ic-512*ic1)/64
81 ic3=(ic-512*ic1-64*ic2)/8
82 ic4=(ic-512*ic1-64*ic2-8*ic3)
83 ic4=icodt(n+2*numnod)
84 icode(n)=512*ic1+64*ic2+8*ic3+ic4
85 40 CONTINUE
86 END IF
87C
88 DO i=1,npart
89 parts0(i)=partsav(8,i)
90 ENDDO
91C
92 RETURN
93 END
subroutine bcsn(icode, icodt, icodr, parts0, partsav)
Definition bcsn.F:29
#define my_real
Definition cppsort.cpp:32