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

Go to the source code of this file.

Functions/Subroutines

subroutine read_elgroup_param (mat_elem)

Function/Subroutine Documentation

◆ read_elgroup_param()

subroutine read_elgroup_param ( type (mat_elem_), intent(inout) mat_elem)

Definition at line 32 of file read_elgroup_param.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE mat_elem_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 TYPE (mat_elem_) ,INTENT(INOUT) :: mat_elem
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER NG,NGROUP,LEN
49 my_real, DIMENSION(:,:), ALLOCATABLE :: rbuf
50C=======================================================================
51c allocation of element group parameters
52 ngroup = mat_elem%NGROUP
53 ALLOCATE (mat_elem%GROUP_PARAM(ngroup) )
54
55 len = 2
56 ALLOCATE(rbuf(ngroup,len))
57 CALL read_db(rbuf, len*ngroup)
58c
59 DO ng = 1, ngroup
60 mat_elem%GROUP_PARAM(ng)%VISC_DM = rbuf(ng,1)
61 mat_elem%GROUP_PARAM(ng)%VISC_DN = rbuf(ng,2)
62 ENDDO
63c
64 DEALLOCATE( rbuf )
65c-----------
66 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine read_db(a, n)
Definition read_db.F:88