OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dealloc_shoot_inter.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!|| dealloc_shoot_inter ../engine/source/interfaces/interf/dealloc_shoot_inter.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| shooting_node_mod ../engine/share/modules/shooting_node_mod.F
29!||====================================================================
30 SUBROUTINE dealloc_shoot_inter( SHOOT_STRUCT )
31!$COMMENT
32! DEALLOC_SHOOT_INTER description
33! deallocation of SHOOT_STRUCT%array
34! DEALLOC_SHOOT_INTER organization
35!$ENDCOMMENT
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 TYPE(shooting_node_type), INTENT(inout) :: SHOOT_STRUCT ! structure for shooting node algo
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 IF(ALLOCATED(shoot_struct%SAVE_SURFACE) )DEALLOCATE( shoot_struct%SAVE_SURFACE )
49 IF(ALLOCATED(shoot_struct%SAVE_PROC) )DEALLOCATE( shoot_struct%SAVE_PROC )
50
51 IF(ALLOCATED(shoot_struct%SAVE_M_EDGE) )DEALLOCATE( shoot_struct%SAVE_M_EDGE )
52 IF(ALLOCATED(shoot_struct%SAVE_S_EDGE) )DEALLOCATE( shoot_struct%SAVE_S_EDGE )
53 IF(ALLOCATED(shoot_struct%SAVE_PROC_EDGE) )DEALLOCATE( shoot_struct%SAVE_PROC_EDGE)
54
55 IF(ALLOCATED(shoot_struct%GLOBAL_ELEM_INDEX) ) DEALLOCATE(shoot_struct%GLOBAL_ELEM_INDEX)
56 shoot_struct%NUMBER_REMOTE_SURF = 0
57 shoot_struct%SIZE_REMOTE_SURF = 0
58 IF(ALLOCATED(shoot_struct%REMOTE_SURF)) DEALLOCATE(shoot_struct%REMOTE_SURF)
59 ALLOCATE( shoot_struct%REMOTE_SURF(shoot_struct%SIZE_REMOTE_SURF) )
60
61 shoot_struct%NUMBER_NEW_SURF = 0
62 shoot_struct%SIZE_NEW_SURF = 0
63 IF(ALLOCATED(shoot_struct%NEW_SURF)) DEALLOCATE(shoot_struct%NEW_SURF)
64 ALLOCATE( shoot_struct%NEW_SURF(shoot_struct%SIZE_NEW_SURF) )
65
66 RETURN
67 END SUBROUTINE dealloc_shoot_inter
subroutine dealloc_shoot_inter(shoot_struct)