OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
map_order.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine map_order (ixelm, sixelm, uid, num_elm, map)

Function/Subroutine Documentation

◆ map_order()

subroutine map_order ( integer, dimension(sixelm,num_elm), intent(in) ixelm,
integer, intent(in) sixelm,
integer, intent(in) uid,
integer, intent(in) num_elm,
integer, dimension(num_elm,2), intent(inout) map )

Definition at line 29 of file map_order.F.

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
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82