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

Go to the source code of this file.

Functions/Subroutines

subroutine redkey0 (key0, nkey, carte, ikey, nslash)

Function/Subroutine Documentation

◆ redkey0()

subroutine redkey0 ( character(len=5), dimension(nkey) key0,
integer nkey,
character(len=ncharline100) carte,
integer ikey,
integer, dimension(*) nslash )

Definition at line 32 of file redkey0.F.

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
subroutine errmsg(key)
Definition errmsg.F:40
integer, parameter ncharline100