#include "implicit_f.inc"
#include "com01_c.inc"
#include "param_c.inc"
Go to the source code of this file.
◆ 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.
31
32
33
34 USE group_param_mod
35
36
37
38#include "implicit_f.inc"
39
40
41
42#include "com01_c.inc"
43#include "param_c.inc"
44
45
46
47 INTEGER PROC, NGROUP_L, LEN
48 INTEGER IPARG(NPARG,*)
49 TYPE(GROUP_PARAM_) ,DIMENSION(NGROUP) :: GROUP_PARAM_TAB
50
51
52
53 INTEGER NG,NG_L
54 my_real,
DIMENSION(:,:),
ALLOCATABLE :: rbuf
55
56 len = 2
57 ALLOCATE(rbuf(ngroup_l,len))
58 rbuf(:,:) = zero
59
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
68
70 len = len*ngroup_l
71 DEALLOCATE( rbuf )
72
73 RETURN
subroutine write_db(a, n)