OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fredec3m.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!|| fredec3m ../starter/source/output/message/fredec3m.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 fredec3m(LINE1,KEY)
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
89 END
subroutine fredec3m(line1, key)
Definition fredec3m.F:32
integer, parameter ncharline
subroutine arret(nn)
Definition arret.F:87