OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i7dstk.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!|| i7dstk ../engine/source/interfaces/intsort/i7dstk.F
25!||--- called by ------------------------------------------------------
26!|| i10tri ../engine/source/interfaces/intsort/i10tri.F
27!|| i11tri ../engine/source/interfaces/intsort/i11tri.F
28!|| i20tri ../engine/source/interfaces/intsort/i20tri.F
29!|| i20tri_edge ../engine/source/interfaces/intsort/i20tri.F
30!|| i21tri ../engine/source/interfaces/intsort/i21tri.F
31!|| i7tri ../engine/source/interfaces/intsort/i7tri.F
32!||====================================================================
33 SUBROUTINE i7dstk(NB_NC,NB_EC,ADD,BPN,PN,BPE,PE)
34C============================================================================
35C this routine is called by: I7TRI(/int7/i7tri.F)
36C I10TRI(/int10/i10tri.F)
37C I11TRI(/int11/i11tri.F)
38C----------------------------------------------------------------------------
39C this routine calls: -
40C============================================================================
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C role of the routine:
47C ===================
48C reload the stack bottom vectors BPN and BPE with the bottoms of
49C stacks PN and PE
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C
53C NOM DESCRIPTION E/S
54C
55C BPE ARRAY OF FACETTES TO SORT S
56C and result on max side
57C PE ARRAY OF FACETTES E
58C RESULTAT COTE MIN
59C BPN SORTED NODES ARRAY S
60C and result on max side
61C PN NODES ARRAY E
62C RESULTAT COTE MIN
63C ADD(2,*) ARRAY OF ADRESSES E
64C 1.......ADRESSES NODES C 2.......ADRESSES ELEMENTS
65C NB_NC NUMBER OF CANDIDATE NODES s
66C NB_EC NUMBER OF CANDIDATE ELEMENTS s
67C
68C-----------------------------------------------
69 INTEGER NB_NC,NB_EC
70 INTEGER ADD(2,0:*),BPE(*),PE(*),BPN(*),PN(*)
71C-----------------------------------------------
72C L o c a l V a r i a b l e s
73C-----------------------------------------------
74 INTEGER I
75C
76C
77C 1- nodes stack
78C
79 nb_nc = add(1,1) - add(1,0)
80 DO 10 i=1,nb_nc
81 bpn(i) = pn(add(1,0)+i)
82 10 CONTINUE
83C
84C 2- elements stack
85C
86 nb_ec = add(2,1) - add(2,0)
87 DO 20 i=1,nb_ec
88 bpe(i) = pe(add(2,0)+i)
89 20 CONTINUE
90 RETURN
91 END
subroutine i7dstk(nb_nc, nb_ec, add, bpn, pn, bpe, pe)
Definition i7dstk.F:34