OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_pload.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "r2r_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine hm_preread_pload (numpres, igrnod, igrsurf, lsubmodel)

Function/Subroutine Documentation

◆ hm_preread_pload()

subroutine hm_preread_pload ( integer numpres,
type (group_), dimension(ngrnod) igrnod,
type (surf_), dimension(nsurf) igrsurf,
type(submodel_data), dimension(*), intent(in) lsubmodel )

Definition at line 36 of file hm_preread_pload.F.

37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE r2r_mod
41 USE groupdef_mod
42 USE submodel_mod
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52#include "com04_c.inc"
53#include "r2r_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER NUMPRES
58C-----------------------------------------------
59 TYPE (GROUP_) ,DIMENSION(NGRNOD) :: IGRNOD
60 TYPE (SURF_) ,DIMENSION(NSURF) :: IGRSURF
61 TYPE(SUBMODEL_DATA),INTENT(IN)::LSUBMODEL(*)
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER I, J, NLD, ISU, ISS, NN, ID
66 CHARACTER(LEN=NCHARTITLE)::TITR
67C-----------------------------------------------
68C E x t e r n a l F u n c t i o n s
69C-----------------------------------------------
70 LOGICAL IS_AVAILABLE
71C=======================================================================
72C Pressions PLOAD
73C-------------------------
74 is_available = .false.
75 nld = numpres
76 numpres = 0
77C--------------------------------------------------
78C START BROWSING MODEL /PLOAD
79C--------------------------------------------------
80 CALL hm_option_start('/PLOAD')
81C--------------------------------------------------
82C BROWSING MODEL Surface 1->NLD
83C--------------------------------------------------
84 DO i=1,nld
85 nn = 0
86C--------------------------------------------------
87C EXTRACT DATAS OF SURF
88C--------------------------------------------------
89 CALL hm_option_read_key(lsubmodel,
90 . option_id = id,
91 . option_titr = titr)
92C--------------------------------------------------
93C EXTRACT DATAS (INTEGER VALUES)
94C--------------------------------------------------
95 CALL hm_get_intv ('entityid',isu,is_available,lsubmodel)
96C--------------------------------------------------
97 IF (isu > 0) THEN
98 DO j=1,nsurf
99 IF (isu == igrsurf(j)%ID) THEN
100 iss = j
101 nn = igrsurf(iss)%NSEG
102 EXIT
103 ENDIF
104 ENDDO
105 ENDIF
106Cmultidomains -> shared segments are counted only once
107 IF (nsubdom>0) THEN
108 IF (iddom>0) nn = nn-isurf_r2r(1,iss)
109 nncl(nconld+i)=nn
110 ENDIF
111C-----------
112 numpres = numpres + nn
113 ENDDO
114C---
115 RETURN
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_start(entity_type)
initmumps id
integer, parameter nchartitle
integer, dimension(:), allocatable nncl
Definition r2r_mod.F:131
integer, dimension(:,:), allocatable isurf_r2r
Definition r2r_mod.F:143