OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
unused_mat_detonator.F File Reference
#include "implicit_f.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

integer function unused_mat_detonator (mdet, nummat, listmat)

Function/Subroutine Documentation

◆ unused_mat_detonator()

integer function unused_mat_detonator ( integer, intent(inout) mdet,
integer, intent(in) nummat,
integer, dimension(npropmi,*), intent(in) listmat )

Definition at line 32 of file unused_mat_detonator.F.

33C-----------------------------------------------
34C D e s c r i p t i o n
35C-----------------------------------------------
36C This subroutine is checking that detonator material id
37C does exist in input file
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 "param_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER :: UNUSED_MAT_DETONATOR
50 INTEGER,intent(in) :: LISTMAT(NPROPMI,*) !material used in the model : {LISTMAT(1,I)},I=1..NUMMAT
51 INTEGER,intent(inout) :: MDET !detonator flag
52 INTEGER,intent(in) :: NUMMAT !Number of Material cards defined in user file
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER JJ, I, MID, MLN
57C-----------------------------------------------
59 jj=0
60 IF (mdet /= 0) THEN
61 DO i=1,nummat
62 mid= listmat(1,i)
63 mln= listmat(2,i)
64 IF (mdet == mid) THEN !MDET refer to an used material
65 IF(mln /= 5 .AND. mln /= 51 .AND. mln /= 97 .AND. mln /= 151)THEN
67 RETURN
68 ENDIF
69 mdet=i !Internal ID
70 EXIT
71 ELSEIF(mid == 0)THEN !end of list reached
72 jj=jj+1
73 EXIT
74 ELSE !MDET does not correspond to this current material
75 jj=jj+1
76 END IF
77 END DO
78 !!JJ=I => All material were compared to Mdet and do not correspond to it.
79 IF (jj==i) THEN
81 END IF
82 END IF
integer function unused_mat_detonator(mdet, nummat, listmat)