OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i18tri.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!|| i18tri ../engine/source/interfaces/int18/i18tri.F
25!||--- calls -----------------------------------------------------
26!|| my_orders ../common_source/tools/sort/my_orders.c
27!||--- uses -----------------------------------------------------
28!|| tri7box ../engine/share/modules/tri7box.F
29!||====================================================================
30 SUBROUTINE i18tri(INDEX,I_STOK,CAND_N,ITAB, NSN ,
31 2 NSV ,NIN )
32C Tri des candidats suivant le numero de noeud user
33C=======================================================================
34C M o d u l e s
35C-----------------------------------------------
36 USE tri7box
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41#include "comlock.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER I_STOK, NSN, NIN,
46 . index(*),cand_n(*), itab(*), nsv(*)
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER I, NI,
51 . itri(i_stok),indtri(2*i_stok),work(70000)
52C-----------------------------------------------
53 DO i = 1, i_stok
54 ni = cand_n(index(i)) ! l ordre des facette n importe plus a nouveau P/on
55 IF(ni<=nsn) THEN
56 itri(i) = itab(nsv(ni)) ! 1 seul critere : noeud (user)
57 ELSE
58 itri(i) = itafi(nin)%P(ni-nsn) ! attention au noeud frontiere
59 END IF
60 END DO
61C
62 CALL my_orders(0,work,itri,indtri,i_stok,1)
63C
64 DO i = 1, i_stok
65 indtri(i_stok+i) = index(i)
66 END DO
67C
68 DO i = 1, i_stok
69 index(i) = indtri(i_stok+indtri(i))
70 END DO
71C
72 RETURN
73 END
subroutine i18tri(index, i_stok, cand_n, itab, nsn, nsv, nin)
Definition i18tri.F:32
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82
type(int_pointer), dimension(:), allocatable itafi
Definition tri7box.F:440