#include "implicit_f.inc"
#include "param_c.inc"
Go to the source code of this file.
◆ 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.
33
34
35
36
37
38
39
40
41#include "implicit_f.inc"
42
43
44
45#include "param_c.inc"
46
47
48
49 INTEGER :: UNUSED_MAT_DETONATOR
50 INTEGER,intent(in) :: LISTMAT(NPROPMI,*)
51 INTEGER,intent(inout) :: MDET
52 INTEGER,intent(in) :: NUMMAT
53
54
55
56 INTEGER , I, MID, MLN
57
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
65 IF(mln /= 5 .AND. mln /= 51 .AND. mln /= 97 .AND. mln /= 151)THEN
67 RETURN
68 ENDIF
69 mdet=i
70 EXIT
71 ELSEIF(mid == 0)THEN
72 jj=jj+1
73 EXIT
74 ELSE
75 jj=jj+1
76 END IF
77 END DO
78 !
79 IF (jj==i) THEN
81 END IF
82 END IF
integer function unused_mat_detonator(mdet, nummat, listmat)