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

Go to the source code of this file.

Functions/Subroutines

subroutine write_elgroup_param (group_param_tab, iparg, proc, ngroup_l, len)

Function/Subroutine Documentation

◆ write_elgroup_param()

subroutine write_elgroup_param ( type(group_param_), dimension(ngroup) group_param_tab,
integer, dimension(nparg,*) iparg,
integer proc,
integer ngroup_l,
integer len )

Definition at line 30 of file write_elgroup_param.F.

31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34 USE group_param_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "com01_c.inc"
43#include "param_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER PROC, NGROUP_L, LEN
48 INTEGER IPARG(NPARG,*)
49 TYPE(GROUP_PARAM_) ,DIMENSION(NGROUP) :: GROUP_PARAM_TAB
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER NG,NG_L
54 my_real, DIMENSION(:,:), ALLOCATABLE :: rbuf
55C=======================================================================
56 len = 2
57 ALLOCATE(rbuf(ngroup_l,len))
58 rbuf(:,:) = zero
59c
60 ng_l = 0
61 DO ng = 1, ngroup
62 IF (iparg(32,ng) == proc) THEN
63 ng_l = ng_l + 1
64 rbuf(ng_l,1) = group_param_tab(ng)%VISC_DM
65 rbuf(ng_l,2) = group_param_tab(ng)%VISC_DN
66 ENDIF
67 ENDDO
68c
69 CALL write_db(rbuf,len*ngroup_l)
70 len = len*ngroup_l
71 DEALLOCATE( rbuf )
72c-----------
73 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine write_db(a, n)
Definition write_db.F:140