OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_itabm1.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/.
23C
24!||====================================================================
25!|| w_itabm1 ../starter/source/restart/ddsplit/w_itabm1.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||--- calls -----------------------------------------------------
29!|| usr2sys ../starter/source/system/sysfus.F
30!||====================================================================
31 SUBROUTINE w_itabm1(ITABM1,ITABM2,NODGLOB,NODLOCAL,NUMNOD_L,
32 2 ITAB, LEN_IA)
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C D u m m y A r g u m e n t s
39C-----------------------------------------------
40 INTEGER ITABM1(*), ITABM2(*), NODGLOB(*), NODLOCAL(*),
41 . numnod_l, len_ia,itab(*)
42C-----------------------------------------------
43C L o c a l V a r i a b l e s
44C-----------------------------------------------
45 INTEGER I,NI,WORK(70000),ND
46 INTEGER, DIMENSION(:), ALLOCATABLE :: ITMPM1,ITMPM2,INDX
47 CHARACTER MESS*40
48 DATA mess/'TOTO '/
49C-----------------------------------------------
50C E x t e r n a l F u n c t i o n s
51C-----------------------------------------------
52 INTEGER USR2SYS
53C-----------------------------------------------
54! allocate 1d array
55 ALLOCATE( itmpm1(numnod_l),itmpm2(numnod_l) )
56 ALLOCATE( indx(2*numnod_l) )
57! ---------------------------------
58 DO i = 1, numnod_l
59 itmpm1(i) = itab(nodglob(i))
60 indx(i) = i
61 ENDDO
62C
63C Retris ordre croissant itabm1 (num user)
64C
65 CALL my_orders(0,work,itmpm1,indx,numnod_l,1)
66 DO i = 1, numnod_l
67 itmpm2(i)= itmpm1(indx(i))
68 ENDDO
69C Ecriture ITABM1 num user tries ordre croissant
70 CALL write_i_c(itmpm2,numnod_l)
71 len_ia = len_ia + numnod_l
72C
73 DO i = 1, numnod_l
74 ni = itmpm2(i)
75 nd = usr2sys(ni,itabm1,mess,0)
76 itmpm1(i) = nodlocal(nd)
77 END DO
78
79C Ecriture ITABM2 (num systemes)
80 CALL write_i_c(itmpm1,numnod_l)
81 len_ia = len_ia + numnod_l
82C
83! ---------------------------------
84! deallocate 1d array
85 DEALLOCATE( itmpm1,itmpm2 )
86 DEALLOCATE( indx )
87! ---------------------------------
88 RETURN
89 END
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82
subroutine w_itabm1(itabm1, itabm2, nodglob, nodlocal, numnod_l, itab, len_ia)
Definition w_itabm1.F:33
void write_i_c(int *w, int *len)