OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_get_boolv.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_get_boolv ../starter/source/devtools/hm_reader/hm_get_boolv.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_damp ../starter/source/general_controls/damping/hm_read_damp.F
27!|| hm_read_fail ../starter/source/materials/fail/hm_read_fail.F
28!|| hm_read_mat06 ../starter/source/materials/mat/mat006/hm_read_mat06.F
29!||--- calls -----------------------------------------------------
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE hm_get_boolv(NAME,BVAL,IS_AVAILABLE)
34C-----------------------------------------------
35C ROUTINE DESCRIPTION :
36C ===================
37C REQUEST DATA INTO MODEL NEUTRAL OBJECT DATABASE USING HM_READER
38C PICK VALUE
39C ASK (BOOL) VALUE OF 'NAME' FIELD DEFINED IN .cfg FILE
40C-----------------------------------------------
41C DUMMY ARGUMENTS DESCRIPTION:
42C ===================
43C
44C NAME DESCRIPTION
45C
46C NAME FIELD NAME
47C BVAL BOOL VALUE OF THE FIELD
48C IS_AVAILABLE VALUE AVAILABLE IN MODEL OR NOT
49C============================================================================
50C M o d u l e s
51C-----------------------------------------------
52 use, INTRINSIC :: iso_c_binding, only: c_bool
53 USE message_mod
54C-----------------------------------------------
55C I m p l i c i t T y p e s
56C-----------------------------------------------
57#include "implicit_f.inc"
58C-----------------------------------------------
59C D u m m y A r g u m e n t s
60C-----------------------------------------------
61C INPUT ARGUMENTS
62 CHARACTER*(*),INTENT(IN)::NAME
63C OUTPUT ARGUMENTS
64 LOGICAL,INTENT(OUT)::BVAL
65 LOGICAL,INTENT(OUT)::IS_AVAILABLE
66C-----------------------------------------------
67C L o c a l V a r i a b l e s
68C-----------------------------------------------
69 LOGICAL(KIND=C_BOOL) :: C_BVAL
70 LOGICAL(KIND=C_BOOL) :: C_IS_AVAILABLE
71C-----------------------------------------------
72 c_bval = .false.
73 c_is_available = .false.
74C--------------------------------------------------
75 CALL cpp_get_boolv(name(1:len_trim(name)),len_trim(name),c_bval,c_is_available)
76C--------------------------------------------------
77 bval = c_bval
78 is_available = c_is_available
79 RETURN
80C
81 END
subroutine hm_get_boolv(name, bval, is_available)