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

Go to the source code of this file.

Functions/Subroutines

subroutine fredec3m (line1, key)

Function/Subroutine Documentation

◆ fredec3m()

subroutine fredec3m ( character(len=ncharline) line1,
character(len=ncharline) key )

Definition at line 31 of file fredec3m.F.

32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40#include "units_c.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 CHARACTER(LEN=NCHARLINE) :: LINE1,KEY
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER I,J1,J2,J
52 key=' '
53 i=2
54 DO WHILE(line1(i:i)/='/')
55 i=i+1
56 IF(i>ncharline) GOTO 900
57 ENDDO
58 i=i+1
59 DO WHILE(line1(i:i)/='/')
60 i=i+1
61 IF(i>ncharline) GOTO 900
62 ENDDO
63 i=i+1
64 IF(i>ncharline) GOTO 900
65 j1=i
66 DO WHILE(line1(i:i)/='/')
67 i=i+1
68 IF(i>ncharline) THEN
69 j2=ncharline
70 GOTO 10
71 END IF
72 ENDDO
73 j2=i-1
74 10 CONTINUE
75C
76 key=trim(line1(j1:j2))
77 RETURN
78C
79C cannot use ANCMSG : used to build message structure
80 900 CONTINUE
81 WRITE(istdo,*)
82 . ' ** ERROR IN FREDEC3M WHILE GETTING KEY',
83 . ' ** LINE=',line1
84 WRITE(iout,*)
85 . ' ** ERROR IN FREDEC3M WHILE GETTING KEY',
86 . ' ** LINE=',line1
87 CALL arret(2)
88 RETURN
integer, parameter ncharline
subroutine arret(nn)
Definition arret.F:87