OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_inista.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!|| hm_read_inista ../starter/source/initial_conditions/inista/hm_read_inista.F
25!||--- called by ------------------------------------------------------
26!|| contrl ../starter/source/starter/contrl.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
29!|| hm_get_string ../starter/source/devtools/hm_reader/hm_get_string.F
30!|| hm_option_count ../starter/source/devtools/hm_reader/hm_option_count.F
31!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
32!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
33!||--- uses -----------------------------------------------------
34!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
35!|| submodel_mod ../starter/share/modules1/submodel_mod.F
36!||====================================================================
37 SUBROUTINE hm_read_inista(S0FILE ,ISIGI ,IOUTP_FMT,
38 . IROOTYY_R,LSUBMODEL)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE submodel_mod
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52#include "scr03_c.inc"
53C-----------------------------------------------
54C D u m m y A r g u m e n t s
55C-----------------------------------------------
56 CHARACTER(LEN=NCHARLINE) :: S0FILE
57 INTEGER ISIGI,IOUTP_FMT,IROOTYY_R
58 TYPE(submodel_data) LSUBMODEL(*)
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER NINISTA,IB,SIZ
63 LOGICAL IS_AVAILABLE
64C=======================================================================
65C
66 is_available = .false.
67C
68 ! Count number of Inista card
69 CALL hm_option_count('/INISTA',ninista)
70C
71 IF (ninista > 0) THEN
72C
73 ! Start reading /INIGRAV card
74 CALL hm_option_start('/INISTA')
75C
76 ! Read title, ID and Unit ID
77 CALL hm_option_read_key(lsubmodel)
78C
79 ! Read card
80 CALL hm_get_string('ISRTY',s0file ,ncharline ,is_available)
81 siz = len_trim(s0file)
82 CALL hm_get_intv('IBAL' ,ib ,is_available,lsubmodel)
83 CALL hm_get_intv('IOUTYY' ,ioutp_fmt,is_available,lsubmodel)
84 CALL hm_get_intv('IOUTYNN',irootyy_r,is_available,lsubmodel)
85C
86 IF (invers < 90 .AND. irootyy_r == 0) irootyy_r = 2
87C
88 ! Setting ISIGI values
89 IF (ib <= 1) isigi = 3
90 IF (ib == 2) isigi = 4
91 IF (ib == 3) isigi = 5
92C
93 ELSE
94 ! Default value
95 isigi = 0
96 ioutp_fmt = 0
97 irootyy_r = 0
98 ENDIF
99C-----------
100 END
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_get_string(name, sval, size, is_available)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_start(entity_type)
subroutine hm_read_inista(s0file, isigi, ioutp_fmt, irootyy_r, lsubmodel)
integer, parameter ncharline