OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
inter_struct_init.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!|| inter_struct_init ../engine/source/interfaces/generic/inter_struct_init.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| intbufdef_mod ../common_source/modules/interfaces/intbufdef_mod.F90
29!|| inter_sorting_mod ../engine/share/modules/inter_sorting_mod.F
30!|| inter_struct_mod ../engine/share/modules/inter_struct_mod.F
31!||====================================================================
32 SUBROUTINE inter_struct_init(INTER_STRUCT,SORT_COMM)
33!$COMMENT
34! INTER_STRUCT_INIT description
35! initialization of INTER_STRUCT structure
36!
37! INTER_STRUCT_INIT organization :
38!$ENDCOMMENT
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE intbufdef_mod
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52#include "com01_c.inc"
53#include "com04_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 TYPE(inter_struct_type), DIMENSION(NINTER), INTENT(inout) :: INTER_STRUCT ! structure for interface
58 TYPE(sorting_comm_type), DIMENSION(NINTER), INTENT(inout) :: SORT_COMM ! structure for interface sorting comm
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER :: KK,NIN
63! ----------------------------------------
64 DO kk=1,ninter
65 inter_struct(kk)%SIZE_CAND_A = 0
66 inter_struct(kk)%I_SK_OLD = 0
67 inter_struct(kk)%INACTI = 0
68 inter_struct(kk)%INACTII = 0
69 inter_struct(kk)%CURV_MAX_MAX = zero
70 inter_struct(kk)%NMN_G = 0
71 ENDDO
72 DO kk=1,nb_inter_7_inacti
73 nin = list_inter_7_inacti(kk)
74 ALLOCATE( inter_struct(nin)%NSNFIOLD(nspmd) )
75 inter_struct(nin)%NSNFIOLD(1:nspmd) = 0
76 ENDDO
77 DO kk=1,ninter
78 sort_comm(kk)%PROC_NUMBER = 0
79 sort_comm(kk)%SIZE_GLOBAL_COARSE_CELL = 0
80 ALLOCATE( sort_comm(kk)%DATA_PROC(nspmd) )
81 ALLOCATE( sort_comm(kk)%REQ_SD2(nspmd) )
82 ALLOCATE( sort_comm(kk)%REQ_SD3(nspmd) )
83 ENDDO
84
85 RETURN
86 END SUBROUTINE inter_struct_init
subroutine inter_struct_init(inter_struct, sort_comm)
integer, dimension(:), allocatable list_inter_7_inacti