OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
unused_mat_detonator.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!|| unused_mat_detonator ../starter/source/initial_conditions/detonation/unused_mat_detonator.F
25!||--- called by ------------------------------------------------------
26!|| read_dfs_detcord ../starter/source/initial_conditions/detonation/read_dfs_detcord.F
27!|| read_dfs_detline ../starter/source/initial_conditions/detonation/read_dfs_detline.F
28!|| read_dfs_detplan ../starter/source/initial_conditions/detonation/read_dfs_detplan.F
29!|| read_dfs_detpoint ../starter/source/initial_conditions/detonation/read_dfs_detpoint.F
30!|| read_dfs_wave_shaper ../starter/source/initial_conditions/detonation/read_dfs_wave_shaper.F
31!||====================================================================
32 FUNCTION unused_mat_detonator(MDET,NUMMAT,LISTMAT)
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
83 END FUNCTION
84C-----------------------------------------------
integer function unused_mat_detonator(mdet, nummat, listmat)