OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_option_read.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
!||====================================================================
24
!|| hm_option_read ../starter/source/devtools/hm_reader/hm_option_read.F
25
!||--- calls -----------------------------------------------------
26
!||--- uses -----------------------------------------------------
27
!|| message_mod ../starter/share/message_module/message_mod.F
28
!|| submodel_mod ../starter/share/modules1/submodel_mod.F
29
!||====================================================================
30
SUBROUTINE
hm_option_read
(ID,UID,SUB_INDEX,TITR,LSUBMODEL)
31
C-----------------------------------------------
32
C ROUTINE DESCRIPTION :
33
C ===================
34
C REQUEST DATA INTO MODEL NEUTRAL OBJECT DATABASE USING HM_READER
35
C IN CARD :
36
C /OPTION/ID/UID
37
C TITR
38
C-----------------------------------------------
39
C DUMMY ARGUMENTS DESCRIPTION:
40
C ===================
41
C
42
C NAME DESCRIPTION
43
C
44
C ID ID OF THE OPTION
45
C UID UNIT ID OF THE OPTION
46
C SUB_INDEX SUBMODEL INDEX OF THE OPTION
47
C TITR TITLE OF THE OPTION
48
C LSUBMODEL SUBMODEL STRUCTURE
49
C============================================================================
50
C M o d u l e s
51
C-----------------------------------------------
52
USE
message_mod
53
USE
submodel_mod
,
ONLY
:
nsubmod
,
submodel_data
54
USE
names_and_titles_mod
,
ONLY
:
ncharline
55
C-----------------------------------------------
56
C I m p l i c i t T y p e s
57
C-----------------------------------------------
58
#include "implicit_f.inc"
59
C-----------------------------------------------
60
C D u m m y A r g u m e n t s
61
C-----------------------------------------------
62
C INPUT ARGUMENTS
63
TYPE
(
submodel_data
),
INTENT(IN)
:: LSUBMODEL(NSUBMOD)
64
C OUTPUT ARGUMENTS
65
INTEGER
,
INTENT(OUT)
:: ID
66
INTEGER
,
INTENT(OUT)
:: UID
67
INTEGER
,
INTENT(OUT)
:: SUB_INDEX
68
CHARACTER*(*)
,
INTENT(OUT)
:: TITR
69
C-----------------------------------------------
70
C L o c a l V a r i a b l e s
71
C-----------------------------------------------
72
INTEGER
OFFSET_CATEGORY
,S_KEYWORD,S_TITR_TMP,POS
73
CHARACTER(LEN=NCHARLINE)
:: KEYWORD,TITR_TMP
74
C-----------------------------------------------
75
C E x t e r n a l F u n c t i o n s
76
C-----------------------------------------------
77
C=======================================================================
78
id = 0
79
sub_index = 0
80
pos=0
81
C--------------------------------------------------
82
CALL
cpp_option_read(id,uid,sub_index,keyword,s_keyword,titr_tmp,s_titr_tmp,offset_category,pos)
83
C--------------------------------------------------
84
titr(1:s_titr_tmp) = titr_tmp(1:s_titr_tmp)
85
86
IF
(sub_index /= 0 )
THEN
87
IF
(lsubmodel(sub_index)%UID /= 0)
THEN
88
uid = lsubmodel(sub_index)%UID
89
ENDIF
90
ENDIF
91
C--------------------------------------------------
92
RETURN
93
C
94
END
hm_option_read
subroutine hm_option_read(id, uid, sub_index, titr, lsubmodel)
Definition
hm_option_read.F:31
message_mod
Definition
message_mod.F:1249
names_and_titles_mod
Definition
names_and_titles_mod.F:997
names_and_titles_mod::ncharline
integer, parameter ncharline
Definition
names_and_titles_mod.F:1001
submodel_mod
Definition
submodel_mod.F:712
submodel_mod::nsubmod
integer nsubmod
Definition
submodel_mod.F:720
submodel_mod::submodel_data
Definition
submodel_mod.F:723
starter
source
devtools
hm_reader
hm_option_read.F
Generated by
1.15.0