OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
redkey2.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!|| redkey2 ../engine/source/input/redkey2.F
25!||--- uses -----------------------------------------------------
26!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
27!||====================================================================
28 SUBROUTINE redkey2(KEY2,LK2,KEY0,NKEY,CARTE,IKEY)
29C-----------------------------------------------
30C M o d u l e s
31C-----------------------------------------------
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37
38C-----------------------------------------------
39C D u m m y A r g u m e n t s
40C-----------------------------------------------
41 INTEGER LK2, NKEY, IKEY
42 CHARACTER KEY2*80
43 CHARACTER(LEN=NCHARLINE100) :: CARTE
44 CHARACTER KEY0(NKEY)*5
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER JK, I, J
49 CHARACTER KEY1*80
50C-----------------------------------------------
51 key1=' '
52 key2=' '
53 jk=0
54 j=0
55 DO i=1,ncharline100
56 IF(carte(i:i)=='/')THEN
57 JK=JK+1
58 J=0
59 ELSEIF(CARTE(I:I)/=' .AND.'JK==1)THEN
60 J=J+1
61 KEY1(J:J)=CARTE(I:I)
62 ELSEIF(CARTE(I:I)/=' .AND.'JK==2)THEN
63 J=J+1
64 LK2=J
65 KEY2(J:J)=CARTE(I:I)
66 ENDIF
67 ENDDO
68C
69 DO IKEY=1,NKEY
70 IF(KEY1==KEY0(IKEY))RETURN
71 ENDDO
72
73 IKEY=0
74C
75 RETURN
76 END
integer, parameter ncharline100
subroutine redkey2(key2, lk2, key0, nkey, carte, ikey)
Definition redkey2.F:29