OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fredec_8key_i.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/.
23C-----------------------------------------------
24!||====================================================================
25!|| fredec_8key_i ../engine/source/input/fredec_8key_i.F
26!||--- called by ------------------------------------------------------
27!|| freanim ../engine/source/output/anim/reader/freanim.F
28!|| fredynain ../engine/source/input/fredynain.F
29!|| frestat ../engine/source/input/frestat.F
30!|| h3d_read ../engine/source/output/h3d/h3d_build_fortran/h3d_read.F
31!||--- uses -----------------------------------------------------
32!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
33!||====================================================================
34 SUBROUTINE fredec_8key_i(CART, KEY2, KEY3, KEY4, KEY5, KEY6, KEY7, KEY8, NBC)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C G l o b a l V a r i a b l e s
45C-----------------------------------------------
46 CHARACTER CART*(*), KEY2*(*), KEY3*(*), KEY4*(*), KEY5*(*), KEY6*(*), KEY7*(*), KEY8*(*)
47 CHARACTER(LEN=NCHARKEY) :: MOT1
48 INTEGER I1,I2,NBC
49C======================================================================|
50C /Key1/KEY2/KEY3/KEY4/KEY5/KEY6/KEY7/KEY8/NBC
51C-----------------------------------------------
52 i1=2
53 i2=i1
54 DO WHILE(cart(i2:i2)/='/'.AND.i2<120)
55 i2=i2+1
56 ENDDO
57C KEY2
58 i1 =i2+1
59 i1=min(i1,120)
60 i2 =i1
61 DO WHILE(cart(i2:i2)/='/'.AND.i2<120)
62 i2=i2+1
63 ENDDO
64 i2=i2-1
65 key2 = cart(i1:i2)
66C KEY3
67 i1 =i2+2
68 i1=min(i1,120)
69 i2 =i1
70 DO WHILE(cart(i2:i2)/='/'.AND.i2<120)
71 i2=i2+1
72 ENDDO
73 i2=i2-1
74 key3 = cart(i1:i2)
75C KEY4
76 i1=i2+2
77 i1=min(i1,120)
78 i2=i1
79 DO WHILE(cart(i2:i2)/='/' .AND. i2 < 120)
80 i2=i2+1
81 ENDDO
82 i2=i2-1
83 key4 = cart(i1:i2)
84C KEY5
85 i1=i2+2
86 i1=min(i1,120)
87 i2=i1
88 DO WHILE(cart(i2:i2)/='/' .AND. i2 < 120)
89 i2=i2+1
90 ENDDO
91 i2=i2-1
92 key5 = cart(i1:i2)
93C KEY6
94 i1=i2+2
95 i1=min(i1,120)
96 i2=i1
97 DO WHILE(cart(i2:i2)/='/' .AND. i2 < 120)
98 i2=i2+1
99 ENDDO
100 i2=i2-1
101 key6 = cart(i1:i2)
102C KEY7
103 i1=i2+2
104 i1=min(i1,120)
105 i2=i1
106 DO WHILE(cart(i2:i2)/='/' .AND. i2 < 120)
107 i2=i2+1
108 ENDDO
109 i2=i2-1
110 key7 = cart(i1:i2)
111C KEY8
112 i1=i2+2
113 i1=min(i1,120)
114 i2=i1
115 DO WHILE(cart(i2:i2)/='/' .AND. i2 < 120)
116 i2=i2+1
117 ENDDO
118 i2=i2-1
119 key8 = cart(i1:i2)
120C NBC
121 i1=101
122 i2=110
123 mot1= cart(i1:i2)
124 READ(mot1,fmt='(I10)')nbc
125C---
126 RETURN
127 END
subroutine fredec_8key_i(cart, key2, key3, key4, key5, key6, key7, key8, nbc)
#define min(a, b)
Definition macros.h:20
integer, parameter ncharkey