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