OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_spmd.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "scr12_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine hm_read_spmd (lsubmodel)

Function/Subroutine Documentation

◆ hm_read_spmd()

subroutine hm_read_spmd ( type(submodel_data), dimension(*), intent(in) lsubmodel)

Definition at line 37 of file hm_read_spmd.F.

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
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_start(entity_type)