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 180 of file detonators_mod.F.

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