OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
intbufFric_ini_starter.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!|| intbuf_fric_ini_starter ../starter/source/interfaces/intbuf/intbufFric_ini_starter.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!||--- uses -----------------------------------------------------
29!|| message_mod ../starter/share/message_module/message_mod.F
30!||====================================================================
31 SUBROUTINE intbuf_fric_ini_starter(INTBUF_FRIC_TAB )
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE my_alloc_mod
36 USE intbuf_fric_mod
37 USE message_mod
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "com04_c.inc"
46C-----------------------------------------------
47C M y A l l o c a t e
48C-----------------------------------------------
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52c my_real
53c .
54 TYPE(intbuf_fric_struct_) :: INTBUF_FRIC_TAB(*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER NINF , NSET ,S_TABPARTS_FRIC ,IORTH ,MFROT ,LENC
59C-----------------------------------------------
60
61 DO ninf = 1,ninterfric
62
63 nset = intbuf_fric_tab(ninf)%NSETPRTS
64 s_tabparts_fric = intbuf_fric_tab(ninf)%S_TABPARTS_FRIC
65 iorth = intbuf_fric_tab(ninf)%IORTHFRIC
66 mfrot = intbuf_fric_tab(ninf)%FRICMOD
67 IF(mfrot ==0 ) THEN
68 lenc =2
69 ELSE
70 lenc = 8
71 ENDIF
72C=======================================================================
73c ALLOCATIONS
74C=======================================================================
75
76 CALL my_alloc(intbuf_fric_tab(ninf)%TABCOUPLEPARTS_FRIC,nset)
77 intbuf_fric_tab(ninf)%TABCOUPLEPARTS_FRIC(1:nset) = 0
78
79 CALL my_alloc(intbuf_fric_tab(ninf)%TABPARTS_FRIC,s_tabparts_fric)
80 intbuf_fric_tab(ninf)%TABPARTS_FRIC(1:s_tabparts_fric) = 0
81
82 CALL my_alloc(intbuf_fric_tab(ninf)%ADPARTS_FRIC,s_tabparts_fric+1)
83 intbuf_fric_tab(ninf)%ADPARTS_FRIC(1:s_tabparts_fric+1) = 0
84
85 CALL my_alloc(intbuf_fric_tab(ninf)%IFRICORTH,nset)
86 intbuf_fric_tab(ninf)%IFRICORTH(1:nset) = 0
87
88 IF (iorth == 0 ) THEN
89 CALL my_alloc(intbuf_fric_tab(ninf)%TABCOEF_FRIC,lenc*(nset+1))
90 intbuf_fric_tab(ninf)%TABCOEF_FRIC(1:lenc*(nset+1)) = zero
91 ELSE
92 CALL my_alloc(intbuf_fric_tab(ninf)%TABCOEF_FRIC,lenc+2*lenc*nset)
93 intbuf_fric_tab(ninf)%TABCOEF_FRIC(1:2*lenc*nset+lenc) = zero
94 ENDIF
95
96C=======================================================================
97c END ALLOCATIONS
98C=======================================================================
99 ENDDO ! NINF = 1,NINTERFRIC
100C-----
101 RETURN
102
103 END SUBROUTINE intbuf_fric_ini_starter
subroutine intbuf_fric_ini_starter(intbuf_fric_tab)