OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_spmd.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_spmd ../starter/source/general_controls/computation/hm_read_spmd.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_spmd(LSUBMODEL)
38C-----------------------------------------------
39C ROUTINE DESCRIPTION :
40C ===================
41C READ /SPMD 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 "com01_c.inc"
61#include "scr12_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
65C INPUT ARGUMENTS
66 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
67C OUTPUT ARGUMENTS
68C-----------------------------------------------
69C L o c a l V a r i a b l e s
70C-----------------------------------------------
71 INTEGER I,NB_SPMD,SUB_ID,BID
72 LOGICAL IS_AVAILABLE
73 INTEGER NTHREAD1
74 CHARACTER (LEN=255) :: STR
75C============================================================================
76 is_available = .false.
77C----------------------------------------------
78 dectyp=0
79 nspmd=0
80 decani=0
81 decmot=0
82 decneq=100
83 nthread=0
84C
85 CALL hm_option_count('/SPMD',nb_spmd)
86 CALL hm_option_start('/SPMD')
87 DO i=1,nb_spmd
88 CALL hm_option_read_key(lsubmodel, submodel_id = sub_id)
89 IF(sub_id == 0) THEN
90 CALL hm_get_intv('DOMDEC',dectyp,is_available,lsubmodel)
91 CALL hm_get_intv('SPMD',nspmd,is_available,lsubmodel)
92C CALL HM_GET_INTV('',DECANI,IS_AVAILABLE,LSUBMODEL)
93 CALL hm_get_intv('DECMOT',decmot,is_available,lsubmodel)
94C CALL HM_GET_INTV('',DECNEQ,IS_AVAILABLE,LSUBMODEL)
95 CALL hm_get_intv('Nthread',nthread,is_available,lsubmodel)
96 EXIT
97 ENDIF
98 ENDDO
99C-------------------------------------
100 RETURN
101 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_spmd(lsubmodel)