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

Go to the source code of this file.

Functions/Subroutines

subroutine fredec2i (line, id)

Function/Subroutine Documentation

◆ fredec2i()

subroutine fredec2i ( character(len=ncharline100) line,
integer id )

Definition at line 32 of file fredec2i.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"
41#include "units_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 CHARACTER(LEN=NCHARLINE100) :: LINE
46 INTEGER ID
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 CHARACTER(LEN=NCHARLINE100) MOT
51 INTEGER I,J1,J2
52 mot=' '
53 i=2
54 DO WHILE(line(i:i)/='/')
55 i=i+1
56 IF(i>ncharline100) GOTO 900
57 ENDDO
58 i=i+1
59 IF(i>ncharline100) GOTO 900
60 j1=i
61 DO WHILE(line(i:i)/='/')
62 i=i+1
63 IF(i>ncharline100) GOTO 900
64 ENDDO
65 j2=i-1
66C
67 mot=line(j1:j2)
68 READ(mot,'(I10)',err=910)id
69 RETURN
70C
71C cannot use ANCMSG : used to build message structure
72 900 CONTINUE
73 WRITE(istdo,*)
74 . ' ** ERROR IN FREDEC2I WHILE GETTING KEY',
75 . ' ** LINE=',line
76 WRITE(iout,*)
77 . ' ** ERROR IN FREDEC2I WHILE GETTING KEY',
78 . ' ** LINE=',line
79 CALL arret(2)
80 RETURN
81 910 CONTINUE
82 WRITE(istdo,*)
83 . ' ** ERROR IN FREDEC2I WHILE GETTING ID',
84 . ' ** LINE=',line,
85 . ' ** KEY=',mot,' IS NOT AN INTEGER'
86 WRITE(iout,*)
87 . ' ** ERROR IN FREDEC2I WHILE GETTING ID',
88 . ' ** LINE=',line,
89 . ' ** KEY=',mot,' IS NOT AN INTEGER'
90 CALL arret(2)
91 RETURN
initmumps id
integer, parameter ncharline100
subroutine arret(nn)
Definition arret.F:86