OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fredec2im.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!|| fredec2im ../starter/source/output/message/fredec2im.F
25!||--- called by ------------------------------------------------------
26!|| build_msg ../starter/source/output/message/build_msg.F
27!||--- calls -----------------------------------------------------
28!|| arret ../starter/source/system/arret.F
29!||--- uses -----------------------------------------------------
30!||====================================================================
31 SUBROUTINE fredec2im(LINE1,ID)
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
48 INTEGER ID
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 CHARACTER(LEN=NCHARLINE) :: MOT
53 INTEGER I,J1,J2,J
54 mot=' '
55 i=2
56 DO WHILE(line1(i:i)/='/')
57 i=i+1
58 IF(i>ncharline) GOTO 900
59 ENDDO
60 i=i+1
61 IF(i>ncharline) GOTO 900
62 j1=i
63 DO WHILE(line1(i:i)/='/')
64 i=i+1
65 IF(i>ncharline) GOTO 900
66 ENDDO
67 j2=i-1
68C
69 mot=line1(j1:j2)
70 READ(mot,'(I10)',err=910)id
71 RETURN
72C
73C cannot use ANCMSG : used to build message structure
74 900 CONTINUE
75 WRITE(istdo,*)
76 . ' ** ERROR IN FREDEC2IM WHILE GETTING KEY',
77 . ' ** LINE=',line1
78 WRITE(iout,*)
79 . ' ** ERROR IN FREDEC2IM WHILE GETTING KEY',
80 . ' ** LINE=',line1
81 CALL arret(2)
82 RETURN
83 910 CONTINUE
84 WRITE(istdo,*)
85 . ' ** ERROR IN FREDEC2IM WHILE GETTING ID',
86 . ' ** LINE=',line1,
87 . ' ** KEY=',mot,' IS NOT AN INTEGER'
88 WRITE(iout,*)
89 . ' ** ERROR IN FREDEC2IM WHILE GETTING ID',
90 . ' ** LINE=',line1,
91 . ' ** KEY=',mot,' IS NOT AN INTEGER'
92 CALL arret(2)
93 RETURN
94 END
subroutine fredec2im(line1, id)
Definition fredec2im.F:32
integer, parameter ncharline
subroutine arret(nn)
Definition arret.F:87