OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_table.F File Reference
#include "implicit_f.inc"
#include "scr17_c.inc"
#include "units_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine hm_read_table1 (ntable, table, nfunct, npc, pld, nom_opt, unitab, lsubmodel)
subroutine hm_read_table2 (ntable, table, nfunct, unitab, lsubmodel)

Function/Subroutine Documentation

◆ hm_read_table1()

subroutine hm_read_table1 ( integer ntable,
type(ttable), dimension(*) table,
integer nfunct,
integer, dimension(*) npc,
pld,
integer, dimension(lnopt1,*) nom_opt,
type(unit_type_), intent(in) unitab,
type(submodel_data), dimension(nsubmod), intent(in) lsubmodel )

Definition at line 38 of file hm_read_table.F.

39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE table_mod
43 USE message_mod
46 USE unitab_mod
48 USE reader_old_mod , ONLY : kfunct, nslash
49C-----------------------------------------------
50C I m p l i c i t T y p e s
51C-----------------------------------------------
52#include "implicit_f.inc"
53C-----------------------------------------------
54C C o m m o n B l o c k s
55C-----------------------------------------------
56#include "scr17_c.inc"
57#include "units_c.inc"
58C-----------------------------------------------
59C D u m m y A r g u m e n t s
60C-----------------------------------------------
61 INTEGER NTABLE,NFUNCT,NPC(*)
62 my_real pld(*)
63 TYPE(TTABLE) TABLE(*)
64 INTEGER NOM_OPT(LNOPT1,*)
65 TYPE(SUBMODEL_DATA), DIMENSION(NSUBMOD), INTENT(IN) :: LSUBMODEL
66 TYPE(UNIT_TYPE_), INTENT(IN) :: UNITAB
67
68C-----------------------------------------------
69C L o c a l V a r i a b l e s
70C-----------------------------------------------
71 INTEGER NFUNCT0, NTABLE0,NTABLE1, NFUNCT_PYTHON
72 INTEGER L
73 CHARACTER :: MESS*40
74 DATA mess/' FUNCTION & TABLE DEFINITION '/
75 LOGICAL :: IS_ENCRYPTED, IS_AVAILABLE
76C======================================================================|
77 IF(ntable == 0) RETURN
78! Initialization
79 is_encrypted = .false.
80 is_available = .false.
81
82 CALL hm_option_count('/FUNCT', nfunct0)
83 CALL hm_option_count('/FUNCT_PYTHON', nfunct_python)
84 nfunct0=nslash(kfunct)+nfunct0
85 ! python functions are not associated with a table
86 WRITE (iout,2000) ntable-(nfunct0-nfunct_python)
87
88 l =nfunct0 ! total number /TABLE + /FUNCT
89 CALL hm_option_count('/TABLE/0', ntable0)
90 CALL hm_option_count('/TABLE/1', ntable1)
91C----------------------------
92C ORDER 1 TABLES
93C----------------------------
94C----------------------------
95C /FUNCT/TABLE/0/id, NDIM=1
96C----------------------------
97 IF (ntable0> 0) THEN
98 CALL hm_read_table1_0(ntable0,ntable, table ,nfunct ,npc ,pld,l,nom_opt, unitab, lsubmodel)
99 ENDIF
100C----------------------------
101C /FUNCT/TABLE/1/id, NDIM=1
102C----------------------------
103 IF(ntable1> 0) THEN
104 CALL hm_read_table1_1(ntable1,ntable, table ,nfunct ,npc ,pld,l,nom_opt, unitab, lsubmodel)
105 ENDIF
106C
107 RETURN
108C-----------------------------------------------------------------
1092000 FORMAT(//
110 . ' TABLES'/
111 . ' ------'/
112 . ' NUMBER OF TABLES . . . . . . . . . . =',i10/)
#define my_real
Definition cppsort.cpp:32
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_read_table1_0(ntable0, ntable, table, nfunct, npc, pld, l, nom_opt, unitab, lsubmodel)
subroutine hm_read_table1_1(ntable1, ntable, table, nfunct, npc, pld, l, nom_opt, unitab, lsubmodel)
integer, parameter nchartitle
integer, parameter ncharfield
integer nsubmod

◆ hm_read_table2()

subroutine hm_read_table2 ( integer ntable,
type(ttable), dimension(*) table,
integer nfunct,
type(unit_type_), intent(in) unitab,
type(submodel_data), dimension(nsubmod), intent(in) lsubmodel )

Definition at line 129 of file hm_read_table.F.

130C-----------------------------------------------
131C M o d u l e s
132C-----------------------------------------------
133 USE table_mod
134 USE message_mod
135 USE submodel_mod
137 USE unitab_mod
139C-----------------------------------------------
140C I m p l i c i t T y p e s
141C-----------------------------------------------
142#include "implicit_f.inc"
143C-----------------------------------------------
144C D u m m y A r g u m e n t s
145C-----------------------------------------------
146 INTEGER NTABLE,NFUNCT
147 TYPE(TTABLE) TABLE(*)
148 TYPE(SUBMODEL_DATA), DIMENSION(NSUBMOD), INTENT(IN) :: LSUBMODEL
149 TYPE(UNIT_TYPE_), INTENT(IN) :: UNITAB
150C-----------------------------------------------
151C L o c a l V a r i a b l e s
152C-----------------------------------------------
153 INTEGER NTABLE1, NTABLE0, IDTAB(NTABLE)
154 INTEGER I, J, L, IDS
155 my_real bid
156 CHARACTER :: MESS*40
157 DATA mess/' FUNCTION & TABLE DEFINITION '/
158 LOGICAL :: IS_ENCRYPTED, IS_AVAILABLE
159C======================================================================|
160c
161 IF(ntable == 0) RETURN
162! Initialization
163 is_encrypted = .false.
164 is_available = .false.
165 l = nfunct
166C----------------------------
167C HIGHER ORDERS TABLES
168C----------------------------
169 CALL hm_option_count('/TABLE/0', ntable0)
170 CALL hm_option_count('/TABLE/1', ntable1)
171C----------------------------
172C /FUNCT/TABLE/0/id, NDIM>1
173C----------------------------
174 IF (ntable0> 0) THEN
175 CALL hm_read_table2_0(ntable0,table,l ,nfunct , unitab, lsubmodel)
176 ENDIF
177C----------------------------
178C /FUNCT/TABLE/1/id, NDIM>1
179C----------------------------
180 IF (ntable1> 0) THEN
181 CALL hm_read_table2_1(ntable,ntable1, table, l , unitab, lsubmodel)
182 ENDIF
183C-------------------------------------
184C Search for double id (Functions & Tables)
185C-------------------------------------
186 DO l=1,ntable
187 idtab(l)=table(l)%NOTABLE
188 END DO
189 ids = 79
190 i = 0
191 j = 0
192c CALL ANCNTS(IDS,I)
193 CALL udouble(idtab,1,ntable,mess,0,bid)
194c CALL ANCNTG(IDS,I,J)
195 ids = 56
196c CALL ANCHECK(IDS)
197 RETURN
subroutine hm_read_table2_0(ntable0, table, l, nfunct, unitab, lsubmodel)
subroutine hm_read_table2_1(nfunct, ntable1, table, itab, unitab, lsubmodel)
subroutine udouble(list, ilist, nlist, mess, ir, rlist)
Definition sysfus.F:573