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,J
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
subroutine fredec2i(line, id)
Definition fredec2i.F:33
initmumps id
integer, parameter ncharline100