OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hord3.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!|| hord3 ../starter/source/output/th/hord3.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_thgrne ../starter/source/output/th/hm_read_thgrne.F
27!||--- calls -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE hord3(NEL,NSEL,ISK,IASC,L)
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 NSEL
38 INTEGER NEL(*),ISK(*),IASC(*),L
39C-----------------------------------------------
40C L o c a l V a r i a b l e s
41C-----------------------------------------------
42 INTEGER J2, I2, I,J, NEL1,ISK1
43 INTEGER LI,LJ,K,IC1
44 INTEGER :: MODE,INDICE,INDICE2
45 INTEGER, DIMENSION(:), ALLOCATABLE :: ITRI,INDX
46 INTEGER, DIMENSION(:), ALLOCATABLE :: IASC_SAVE,ISK_SAVE
47 INTEGER, DIMENSION(70000) :: WORK
48! ---------------------------------------------
49 ALLOCATE( itri(nsel) )
50 ALLOCATE( indx(2*nsel) )
51 ALLOCATE( iasc_save(l*nsel) )
52 ALLOCATE( isk_save(nsel) )
53
54
55 itri(1:nsel) = nel(1:nsel)
56 iasc_save(1:l*nsel) = iasc(1:l*nsel)
57 isk_save(1:nsel) = isk(1:nsel)
58 DO i=1,nsel
59 indx(i) = i
60 ENDDO
61 mode=0
62 CALL my_orders( mode, work, itri, indx, nsel , 1)
63
64 DO i=1,nsel
65 nel(i) = itri(indx(i))
66 isk(i) = isk_save(indx(i))
67 ENDDO
68 DO i=1,nsel
69 indice = (i-1)*l
70 indice2 = (indx(i)-1)*l
71 DO j=1,l
72 iasc(indice+j) = iasc_save(indice2+j)
73 ENDDO
74 ENDDO
75
76 DEALLOCATE( itri )
77 DEALLOCATE( indx )
78 DEALLOCATE( iasc_save )
79 DEALLOCATE( isk_save )
80
81 RETURN
82 END SUBROUTINE hord3
subroutine hord3(nel, nsel, isk, iasc, l)
Definition hord3.F:30
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82