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

Go to the source code of this file.

Functions/Subroutines

subroutine check_eltyp (eltyp, clause, ok)

Function/Subroutine Documentation

◆ check_eltyp()

subroutine check_eltyp ( integer, intent(in) eltyp,
type (set_), intent(inout) clause,
integer, intent(out) ok )

Definition at line 34 of file check_eltyp.F.

35C-----------------------------------------------
36C ROUTINE DESCRIPTION :
37C ===================
38C For a SET of elements :
39C Check if the input deck has elements from this type.
40C If not : Warning Message + Negative answer.
41C------------------------------------------------------------------
42C DUMMY ARGUMENTS DESCRIPTION:
43C ===================
44C
45C NAME DESCRIPTION
46C
47C ELTYP type of Element from SET as defined in "radioss_maptavle.inc"
48C CLAUSE (SET structure) Clause to be treated
49C OK INTEGER : Elt found / Not found
50C-----------------------------------------------
51C M o d u l e s
52C-----------------------------------------------
53 USE setdef_mod
54 USE submodel_mod
55 USE message_mod
57C-----------------------------------------------
58C I m p l i c i t T y p e s
59C-----------------------------------------------
60#include "implicit_f.inc"
61C-----------------------------------------------
62C C o m m o n B l o c k s
63C-----------------------------------------------
64#include "com04_c.inc"
65#include "radioss_maptable.inc"
66C-----------------------------------------------
67C D u m m y A r g u m e n t s
68C-----------------------------------------------
69 INTEGER,INTENT(IN) :: ELTYP
70 TYPE (SET_),INTENT(INOUT) :: CLAUSE
71 INTEGER,INTENT(OUT) :: OK
72C-----------------------------------------------
73C L o c a l V a r i a b l e s
74C-----------------------------------------------
75 INTEGER NBELT
76 CHARACTER (LEN=50) :: EL_TITLE
77C-----------------------------------------------
78 nbelt = 0
79 SELECT CASE (eltyp)
80 CASE(elt_solid)
81 nbelt = numels
82 el_title='SOLID ELEMENTS'
83 CASE(elt_quad)
84 nbelt = numelq
85 el_title='QUAD ELEMENTS'
86 CASE(elt_sh4n)
87 nbelt = numelc
88 el_title='SHELL ELEMENTS'
89 CASE(elt_truss)
90 nbelt = numelt
91 el_title='TRUSS ELEMENTS'
92 CASE(elt_beam)
93 nbelt = numelp
94 el_title='BEAM ELEMENTS'
95 CASE(elt_spring)
96 nbelt = numelr
97 el_title='SPRING ELEMENTS'
98 CASE(elt_sh3n)
99 nbelt = numeltg
100 el_title='SH3N ELEMENTS'
101 CASE(elt_tria)
102 nbelt = numeltg
103 el_title='TRIA ELEMENTS'
104 END SELECT
105
106 IF(nbelt == 0)THEN
107 ok = 0
108 CALL ancmsg(msgid=2007,anmode=aninfo,
109 . msgtype=msgwarning,
110 . i1 = clause%SET_ID,
111 . c1=trim(clause%TITLE),
112 . c2=el_title)
113 ELSE
114 ok = 1
115 ENDIF
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889