OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_lagmul.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_lagmul ../starter/source/tools/lagmul/hm_read_lagmul.F
25!||--- called by ------------------------------------------------------
26!|| contrl ../starter/source/starter/contrl.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_floatv_without_uid ../starter/source/devtools/hm_reader/hm_get_floatv_without_uid.F
29!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.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!|| message_mod ../starter/share/message_module/message_mod.F
36!|| submodel_mod ../starter/share/modules1/submodel_mod.F
37!||====================================================================
38 SUBROUTINE hm_read_lagmul(LSUBMODEL)
39C-----------------------------------------------
40C ROUTINE DESCRIPTION :
41C ===================
42C READ /LAGMUL USING HM_READER
43C-----------------------------------------------
44C DUMMY ARGUMENTS DESCRIPTION:
45C ===================
46C
47C NAME DESCRIPTION
48C
49C LSUBMODEL SUBMODEL STRUCTURE
50C-----------------------------------------------
51C M o d u l e s
52C-----------------------------------------------
54 USE message_mod
55 USE submodel_mod
56C-----------------------------------------------
57C I m p l i c i t T y p e s
58C-----------------------------------------------
59#include "implicit_f.inc"
60C-----------------------------------------------
61C C o m m o n B l o c k s
62C-----------------------------------------------
63#include "lagmult.inc"
64C-----------------------------------------------
65C D u m m y A r g u m e n t s
66C-----------------------------------------------
67C INPUT ARGUMENTS
68 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
69C OUTPUT ARGUMENTS
70C-----------------------------------------------
71C L o c a l V a r i a b l e s
72C-----------------------------------------------
73 INTEGER I,NB_LAGMUL,SUB_ID,TAG_READ
74 LOGICAL IS_AVAILABLE
75C============================================================================
76 is_available = .false.
77C----------------------------------------------
78C
79 tag_read=0
80 lagmod = 1
81 lagopt = 1
82 lagm_tol = em11
83 lag_alph = fiveem4
84 lag_alphs= zero
85C
86 CALL hm_option_count('/LAGMUL',nb_lagmul)
87 CALL hm_option_start('/LAGMUL')
88 DO i=1,nb_lagmul
89 CALL hm_option_read_key(lsubmodel, submodel_id = sub_id)
90 IF(sub_id == 0) THEN
91 CALL hm_get_intv('LAGMUL_Lagmod',lagmod,is_available,lsubmodel)
92 CALL hm_get_intv('LAGMUL_Lagopt',lagopt,is_available,lsubmodel)
93 CALL hm_get_floatv_without_uid('LAGMUL_Tol',lagm_tol,is_available)
94 CALL hm_get_floatv_without_uid('LAGMUL_Alpha',lag_alph,is_available)
95 CALL hm_get_floatv_without_uid('LAGMUL_Alpha_s',lag_alphs,is_available)
96 tag_read=1
97 EXIT
98 ENDIF
99 ENDDO
100C
101 IF(tag_read == 1) THEN
102 IF(lagmod == 0) lagmod = 1
103 IF(lagm_tol == 0) lagm_tol = em11
104 IF(lag_alph == 0) lag_alph = em3
105 IF(lag_alphs == 0) lag_alphs = zero
106 ENDIF
107C
108C--------------------------------------------------------------
109 RETURN
110 END
111
112
subroutine hm_get_floatv_without_uid(name, rval, is_available)
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_lagmul(lsubmodel)