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

Go to the source code of this file.

Functions/Subroutines

subroutine redkey2 (key2, lk2, key0, nkey, carte, ikey)

Function/Subroutine Documentation

◆ redkey2()

subroutine redkey2 ( character key2,
integer lk2,
character, dimension(nkey) key0,
integer nkey,
character(len=ncharline100) carte,
integer ikey )

Definition at line 28 of file redkey2.F.

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
integer, parameter ncharline100