OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ingrbric.F File Reference
#include "implicit_f.inc"
#include "units_c.inc"
#include "com04_c.inc"
#include "param_c.inc"
#include "scr03_c.inc"
#include "inter22.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine ingrbric (msn, brics, msv, ixs, nbric, pm, s_msv, igeo)

Function/Subroutine Documentation

◆ ingrbric()

subroutine ingrbric ( integer, intent(inout) msn,
integer, dimension(nbric), intent(in) brics,
integer, dimension(s_msv), intent(inout) msv,
integer, dimension(nixs,numels), intent(in) ixs,
integer, intent(in) nbric,
dimension(npropm,nummat), intent(in) pm,
integer, intent(in) s_msv,
integer, dimension(npropgi,numgeo), intent(in) igeo )

Definition at line 31 of file ingrbric.F.

32C-----------------------------------------------------------------------
33C This subroutine lists all brick in the /GRBRICK
34C (for example it is used with /inter/type22 which requires a grbrick_id)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE format_mod , ONLY : fmw_10i
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "units_c.inc"
47#include "com04_c.inc"
48#include "param_c.inc"
49#include "scr03_c.inc"
50#include "inter22.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER , INTENT(IN) :: NBRIC,S_MSV
55 INTEGER , INTENT(IN) :: BRICS(NBRIC), IXS(NIXS,NUMELS), IGEO(NPROPGI,NUMGEO)
56 INTEGER , INTENT(INOUT) :: MSN, MSV(S_MSV)
57 my_real , INTENT(IN) :: pm(npropm,nummat)
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER :: I, IMAT, IPID, IALE_, IF_ALE, IF_EUL, JALE_FROM_MAT, JALE_FROM_PROP
62C-----------------------------------------------
63C S o u r c e L i n e s
64C-----------------------------------------------
65 msn = nbric
66 i22_aleul = 0
67 if_ale = 0
68 if_eul = 0
69 DO i=1,nbric
70 msv(i) = brics(i)
71 END DO
72
73 IF(int22/=0)THEN
74 DO i=1,nbric
75 imat = ixs(1,msv(i))
76 ipid = ixs(10,msv(i))
77 jale_from_mat = nint(pm(72,imat))
78 jale_from_prop = igeo(62,ipid)
79 iale_ = max(jale_from_mat, jale_from_prop) !if inconsistent, error message was displayed in PART reader
80 IF(iale_==1)if_ale=1
81 IF(iale_==2)if_eul=1
82 ENDDO
83 IF(if_ale==1)THEN
84 i22_aleul = 1
85 ELSEIF(if_eul==1)THEN
86 i22_aleul = 2
87 ELSE
88 i22_aleul = 0
89 ENDIF
90 ENDIF
91
92 IF(ipri >= 1) THEN
93 WRITE(iout,'(/,A,/)') ' BRICKS USED FOR FLUID DOMAIN DEFINITION'
94 IF (nbric>0)THEN
95 WRITE(iout,fmt=fmw_10i)(ixs(11,msv(i)),i=1,msn)
96 ELSE
97 WRITE(iout,fmt='(A)') ' empty !'
98 ENDIF
99 ENDIF
100C------------------------------------------------------------
101 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21