OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_option_read.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_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)
31C-----------------------------------------------
32C ROUTINE DESCRIPTION :
33C ===================
34C REQUEST DATA INTO MODEL NEUTRAL OBJECT DATABASE USING HM_READER
35C IN CARD :
36C /OPTION/ID/UID
37C TITR
38C-----------------------------------------------
39C DUMMY ARGUMENTS DESCRIPTION:
40C ===================
41C
42C NAME DESCRIPTION
43C
44C ID ID OF THE OPTION
45C UID UNIT ID OF THE OPTION
46C SUB_INDEX SUBMODEL INDEX OF THE OPTION
47C TITR TITLE OF THE OPTION
48C LSUBMODEL SUBMODEL STRUCTURE
49C============================================================================
50C M o d u l e s
51C-----------------------------------------------
52 USE message_mod
55C-----------------------------------------------
56C I m p l i c i t T y p e s
57C-----------------------------------------------
58#include "implicit_f.inc"
59C-----------------------------------------------
60C D u m m y A r g u m e n t s
61C-----------------------------------------------
62C INPUT ARGUMENTS
63 TYPE(submodel_data),INTENT(IN) :: LSUBMODEL(NSUBMOD)
64C OUTPUT ARGUMENTS
65 INTEGER,INTENT(OUT) :: ID
66 INTEGER,INTENT(OUT) :: UID
67 INTEGER,INTENT(OUT) :: SUB_INDEX
68 CHARACTER*(*),INTENT(OUT) :: TITR
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER OFFSET_CATEGORY,S_KEYWORD,S_TITR_TMP,POS
73 CHARACTER(LEN=NCHARLINE) :: KEYWORD,TITR_TMP
74C-----------------------------------------------
75C E x t e r n a l F u n c t i o n s
76C-----------------------------------------------
77C=======================================================================
78 id = 0
79 sub_index = 0
80 pos=0
81C--------------------------------------------------
82 CALL cpp_option_read(id,uid,sub_index,keyword,s_keyword,titr_tmp,s_titr_tmp,offset_category,pos)
83C--------------------------------------------------
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
91C--------------------------------------------------
92 RETURN
93C
94 END
subroutine hm_option_read(id, uid, sub_index, titr, lsubmodel)
integer, parameter ncharline
integer nsubmod