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

Go to the source code of this file.

Functions/Subroutines

subroutine inter_struct_init (inter_struct, sort_comm)

Function/Subroutine Documentation

◆ inter_struct_init()

subroutine inter_struct_init ( type(inter_struct_type), dimension(ninter), intent(inout) inter_struct,
type(sorting_comm_type), dimension(ninter), intent(inout) sort_comm )

Definition at line 32 of file inter_struct_init.F.

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
integer, dimension(:), allocatable list_inter_7_inacti