OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fredec2i.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| fredec2i ../engine/source/output/message/fredec2i.F
25!||--- called by ------------------------------------------------------
26!|| build_msg ../common_source/tools/memory/my_alloc.F90
27!||--- calls -----------------------------------------------------
28!|| arret ../engine/source/system/arret.F
29!||--- uses -----------------------------------------------------
30!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
31!||====================================================================
32 SUBROUTINE fredec2i(LINE,ID)
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
92 END
subroutine fredec2i(line, id)
Definition fredec2i.F:33
integer, parameter ncharline100
subroutine arret(nn)
Definition arret.F:87