OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
reordr.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!|| reordr ../starter/source/elements/solid_2d/quad/reordr.F
25!||--- called by ------------------------------------------------------
26!|| lce16q3 ../starter/source/elements/solid_2d/quad/lce16q.F
27!|| lce16s3 ../starter/source/elements/reader/hm_read_solid.F
28!||--- uses -----------------------------------------------------
29!||====================================================================
30 SUBROUTINE reordr(IX, NX, NEL, PM, IPOINT, IPARTS, NGRELE, IGRELEM, NUMMAT)
31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34 USE groupdef_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "param_c.inc"
43#include "tablen_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER :: NX, NEL,NGRELE
48 INTEGER :: IX(NX,NEL), IPOINT(2,*),IPARTS(*)
49 INTEGER, INTENT(IN) :: NUMMAT
50 my_real :: pm(npropm,nummat)
51C-----------------------------------------------
52 TYPE (GROUP_) , DIMENSION(NGRELE) :: IGRELEM
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER IADR(0:MAXLAW+1), NL, M, I, MLAWP1, MT, MLAW, J,K,N,IAD
57C-----------------------------------------------
58C S o u r c e L i n e s
59C-----------------------------------------------
60 nl=maxlaw
61 DO m=0,nl+1
62 iadr(m)=0
63 ENDDO
64C---------------------------------------
65C NUMBER OF ELEMS FOR EACH MATERIAL LAW
66C---------------------------------------
67 DO i=1,nel
68 IF(ix(1,i)<0) THEN
69 mlawp1=17+1
70 ELSE
71 mt=ix(1,i)
72 mlawp1=nint(pm(19,mt))+1
73 ENDIF
74 iadr(mlawp1)=iadr(mlawp1)+1
75 ENDDO
76C------------------------------------------
77C ELEM ADDRESSE FOR EACH MATERIAL LAW
78C SKIPPING LAW11
79C------------------------------------------
80 iadr(11+1)=0
81 DO m=1,nl
82 iadr(m)=iadr(m)+iadr(m-1)
83 ENDDO
84 iadr(11)=iadr(nl+1)+iadr(nl)
85C--------------------------------------------------
86C CALL POINTER FOR EACH MLW
87C--------------------------------------------------
88 DO i=1,nel
89 IF(ix(1,i)<0) THEN
90 mlaw=17
91 ELSE
92 mt=ix(1,i)
93 mlaw=nint(pm(19,mt))
94 ENDIF
95 iadr(mlaw)=iadr(mlaw)+1
96 ipoint(1,i)=iadr(mlaw)
97 END DO
98C------------------------------------------
99C PERUMTATING ELEMS USING LAWS
100C------------------------------------------
101 DO j=1,nx
102 DO i=1,nel
103 ipoint(2,i)=ix(j,i)
104 END DO
105 DO i=1,nel
106 ix(j,ipoint(1,i))=ipoint(2,i)
107 END DO
108 ENDDO
109C------------------------------------------
110C PERMUTATING PARTS
111C------------------------------------------
112 DO i=1,nel
113 ipoint(2,i)=iparts(i)
114 ENDDO
115 DO i=1,nel
116 iparts(ipoint(1,i))=ipoint(2,i)
117 ENDDO
118C------------------------------------------
119C RRENUMBERING ELEMS INSIDE GROUPS
120C------------------------------------------
121 DO k=1,ngrele
122 n = igrelem(k)%NENTITY
123 DO i=1,n
124 IF (igrelem(k)%ENTITY(i)<=nel)igrelem(k)%ENTITY(i) = ipoint(1,igrelem(k)%ENTITY(i))
125 ENDDO
126 ENDDO
127C------------------------------------------
128 RETURN
129 END
#define my_real
Definition cppsort.cpp:32
subroutine reordr(ix, nx, nel, pm, ipoint, iparts, ngrele, igrelem, nummat)
Definition reordr.F:31