OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
map_order.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!|| map_order ../starter/source/model/sets/map_order.F
25!||--- called by ------------------------------------------------------
26!|| create_map_tables ../starter/source/model/sets/map_tables.F
27!||--- calls -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE map_order(IXELM,SIXELM,UID,NUM_ELM,MAP)
30C-----------------------------------------------
31C I m p l i c i t T y p e s
32C-----------------------------------------------
33#include "implicit_f.inc"
34C-----------------------------------------------
35C D u m m y A r g u m e n t s
36C-----------------------------------------------
37 INTEGER, INTENT(in) :: NUM_ELM,SIXELM,UID
38 INTEGER, DIMENSION(SIXELM,NUM_ELM), INTENT(in) :: IXELM
39 INTEGER, DIMENSION(NUM_ELM,2), INTENT(inout) :: MAP
40C-----------------------------------------------
41C L o c a l V a r i a b l e s
42C-----------------------------------------------
43 INTEGER :: I
44 INTEGER, DIMENSION(70000) :: IWORK
45 INTEGER, DIMENSION(:), ALLOCATABLE :: ISORT,INDEX_SORT
46C-----------------------------------------------
47
48 ALLOCATE(isort(num_elm))
49 ALLOCATE(index_sort(2*num_elm))
50
51 DO i=1,num_elm
52 isort(i)=ixelm(uid,i)
53 index_sort(i)=i
54 ENDDO
55 CALL my_orders(0,iwork,isort,index_sort,num_elm,1)
56
57 DO i=1,num_elm
58 map(i,1)=isort(index_sort(i))
59 map(i,2)=index_sort(i)
60 ENDDO
61
62 DEALLOCATE (isort)
63 DEALLOCATE (index_sort)
64
65 RETURN
66 END SUBROUTINE map_order
subroutine map_order(ixelm, sixelm, uid, num_elm, map)
Definition map_order.F:30
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82