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
72 LOGICAL IS_AVAILABLE
73 CHARACTER (LEN=255) :: STR
74C============================================================================
75 is_available = .false.
76C----------------------------------------------
77 dectyp=0
78 nspmd=0
79 decani=0
80 decmot=0
81 decneq=100
82 nthread=0
83C
84 CALL hm_option_count('/SPMD',nb_spmd)
85 CALL hm_option_start('/SPMD')
86 DO i=1,nb_spmd
87 CALL hm_option_read_key(lsubmodel, submodel_id = sub_id)
88 IF(sub_id == 0) THEN
89 CALL hm_get_intv('DOMDEC',dectyp,is_available,lsubmodel)
90 CALL hm_get_intv('SPMD',nspmd,is_available,lsubmodel)
91C CALL HM_GET_INTV('',DECANI,IS_AVAILABLE,LSUBMODEL)
92 CALL hm_get_intv('DECMOT',decmot,is_available,lsubmodel)
93C CALL HM_GET_INTV('',DECNEQ,IS_AVAILABLE,LSUBMODEL)
94 CALL hm_get_intv('Nthread',nthread,is_available,lsubmodel)
95 EXIT
96 ENDIF
97 ENDDO
98C-------------------------------------
99 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)