OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_ioflag.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_ioflag ../starter/source/general_controls/inputoutput/hm_read_ioflag.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_option_count ../starter/source/devtools/hm_reader/hm_option_count.F
30!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
31!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
32!||--- uses -----------------------------------------------------
33!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
34!|| message_mod ../starter/share/message_module/message_mod.F
35!|| submodel_mod ../starter/share/modules1/submodel_mod.F
36!||====================================================================
37 SUBROUTINE hm_read_ioflag(LSUBMODEL)
38C-----------------------------------------------
39C ROUTINE DESCRIPTION :
40C ===================
41C READ /IOFLAG USING HM_READER
42C-----------------------------------------------
43C DUMMY ARGUMENTS DESCRIPTION:
44C ===================
45C NAME DESCRIPTION
46C LSUBMODEL SUBMODEL STRUCTURE
47C-----------------------------------------------
48C M o d u l e s
49C-----------------------------------------------
51 USE submodel_mod
52 USE message_mod
53C-----------------------------------------------
54C I m p l i c i t T y p e s
55C-----------------------------------------------
56#include "implicit_f.inc"
57C-----------------------------------------------
58C C o m m o n B l o c k s
59C-----------------------------------------------
60#include "scr05_c.inc"
61#include "scr03_c.inc"
62#include "scr16_c.inc"
63C-----------------------------------------------
64C D u m m y A r g u m e n t s
65C-----------------------------------------------
66C INPUT ARGUMENTS
67 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
68C OUTPUT ARGUMENTS
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER I,NB_IOFLAG,SUB_ID,IOUTP0
73 LOGICAL IS_AVAILABLE
74C============================================================================
75 is_available = .false.
76C----------------------------------------------
77 irfe0=0 ! old flag
78 ipri=0
79 ioutp0=0
80 outyy_fmt=0
81 irootyy = 0
82 idrot = 0
83C
84 CALL hm_option_count('/IOFLAG', nb_ioflag)
85 CALL hm_option_start('/IOFLAG')
86 DO i=1,nb_ioflag
87 CALL hm_option_read_key(lsubmodel,
88 . submodel_id = sub_id)
89 IF(sub_id == 0) THEN
90 CALL hm_get_intv('IPRI',ipri,is_available,lsubmodel)
91 CALL hm_get_intv('IOUTP',ioutp0,is_available,lsubmodel)
92 CALL hm_get_intv('IOUTYY',outyy_fmt,is_available,lsubmodel)
93 CALL hm_get_intv('IROOTYY',irootyy,is_available,lsubmodel)
94 CALL hm_get_intv('Irot',idrot,is_available,lsubmodel)
95 IF (invers < 90 .AND. irootyy == 0) irootyy = 2
96 EXIT
97 END IF
98 ENDDO
99C
100 IF(ioutp0>=1)THEN
101 ioutput = 1
102 ELSEIF(ioutp0==-1)THEN
103 ioutput = 0
104 ENDIF
105C--------------------------------------------------------------
106 RETURN
107 END
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_start(entity_type)
subroutine hm_read_ioflag(lsubmodel)