OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
flush_remnode_array.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!|| flush_remnode_array ../starter/source/interfaces/inter3d1/flush_remnode_array.F
25!||--- called by ------------------------------------------------------
26!|| inintr ../starter/source/interfaces/interf1/inintr.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE flush_remnode_array(NINTER,NPARI,IPARI,INTBUF_TAB)
30!$COMMENT
31! FLUSH_REMNODE_ARRAY description :
32! flush arrays and structure related to RMENODE algo
33!
34! FLUSH_REMNODE_ARRAY organization :
35! loop over the interfaces
36! * for interface type 24 --> flush structures and arrays
37!$ENDCOMMENT
38
39 USE intbufdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER, INTENT(in) :: NINTER !< number of interface
48 INTEGER, INTENT(in) :: NPARI !< 1rst dim of IPARI array
49 INTEGER, DIMENSION(NPARI,NINTER), INTENT(in) :: IPARI !< interface data
50 TYPE(intbuf_struct_), DIMENSION(NINTER), INTENT(inout) :: INTBUF_TAB !< interface structure
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER :: N
55 INTEGER :: INTERFACE_TYPE,LOCAL_SIZE
56C-----------------------------------------------
57
58 ! ---------------------------
59 ! loop over the interface
60 DO n=1,ninter
61 interface_type = ipari(7,n)
62 IF(interface_type==24.OR.interface_type==25) THEN
63 local_size = size(intbuf_tab(n)%KREMNODE)
64 intbuf_tab(n)%KREMNODE(1:local_size) = 0
65 intbuf_tab(n)%S_REMNODE = 0
66
67 local_size = size(intbuf_tab(n)%KREMNODE_EDG)
68 intbuf_tab(n)%KREMNODE_EDG(1:local_size) = 0
69 intbuf_tab%S_KREMNODE_EDG = 0
70
71 local_size = size(intbuf_tab(n)%KREMNODE_E2S)
72 intbuf_tab(n)%KREMNODE_E2S(1:local_size) = 0
73 intbuf_tab%S_KREMNODE_E2S = 0
74
75 intbuf_tab(n)%S_REMNODE_EDG = 0
76 intbuf_tab(n)%S_REMNODE_E2S = 0
77 ENDIF
78 ENDDO
79 ! ---------------------------
80
81 RETURN
82 END SUBROUTINE flush_remnode_array
subroutine flush_remnode_array(ninter, npari, ipari, intbuf_tab)