OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
detonators_mod Module Reference

Data Types

type  detonator_point_struct_
type  detonator_line_struct_
type  detonator_plane_struct_
type  detonator_wave_shaper_struct_
type  detonator_cord_struct_
type  detonators_struct_

Functions/Subroutines

subroutine deallocate_detonators (detonators)

Function/Subroutine Documentation

◆ deallocate_detonators()

subroutine detonators_mod::deallocate_detonators ( type(detonators_struct_), intent(inout) detonators)

Definition at line 179 of file detonators_mod.F.

180C-----------------------------------------------
181C I m p l i c i t T y p e s
182C-----------------------------------------------
183#include "implicit_f.inc"
184C-----------------------------------------------
185C D u m m y A r g u m e n t s
186C-----------------------------------------------
187 TYPE(DETONATORS_STRUCT_),INTENT(INOUT)::DETONATORS
188C-----------------------------------------------
189C L o c a l V a r i a b l e s
190C-----------------------------------------------
191 INTEGER IDET
192C-----------------------------------------------
193C S o u r c e L i n e s
194C-----------------------------------------------
195 !working arrays for detonation point
196 IF(detonators%N_DET_POINT > 0)THEN
197 DO idet=1,detonators%N_DET_POINT
198 IF(ALLOCATED(detonators%POINT(idet)%NODLIST))DEALLOCATE(detonators%POINT(idet)%NODLIST)
199 ENDDO
200 ENDIF
201
202 !working arrays for detonating cord
203 IF(detonators%N_DET_CORD > 0)THEN
204 DO idet=1,detonators%N_DET_CORD
205 IF(ALLOCATED(detonators%CORD(idet)%NODES))DEALLOCATE(detonators%CORD(idet)%NODES)
206 IF(ALLOCATED(detonators%CORD(idet)%TDET_PATH))DEALLOCATE(detonators%CORD(idet)%TDET_PATH)
207 ENDDO
208 ENDIF
209
210 !working arrays for wave shaper
211 IF(detonators%N_DET_WAVE_SHAPER > 0)THEN
212 DO idet=1,detonators%N_DET_WAVE_SHAPER
213 IF(ALLOCATED(detonators%WAVE_SHAPER(idet)%NODES))DEALLOCATE(detonators%WAVE_SHAPER(idet)%NODES)
214 IF(ALLOCATED(detonators%WAVE_SHAPER(idet)%TIME))DEALLOCATE(detonators%WAVE_SHAPER(idet)%TIME)
215 IF(ALLOCATED(detonators%WAVE_SHAPER(idet)%FLAG))DEALLOCATE(detonators%WAVE_SHAPER(idet)%FLAG)
216 IF(ALLOCATED(detonators%WAVE_SHAPER(idet)%IORDR))DEALLOCATE(detonators%WAVE_SHAPER(idet)%IORDR)
217 ENDDO
218 ENDIF
219
220 !general data structure
221 IF(ALLOCATED(detonators%POINT)) DEALLOCATE(detonators%POINT)
222 IF(ALLOCATED(detonators%PLANE)) DEALLOCATE(detonators%PLANE)
223 IF(ALLOCATED(detonators%LINE)) DEALLOCATE(detonators%LINE)
224 IF(ALLOCATED(detonators%CORD)) DEALLOCATE(detonators%CORD)
225 IF(ALLOCATED(detonators%WAVE_SHAPER)) DEALLOCATE(detonators%WAVE_SHAPER)
226