32
33
34
35#include "implicit_f.inc"
36
37
38
39#include "com04_c.inc"
40#include "scr23_c.inc"
41
42
43
44 INTEGER NUMELX_L, PROC, ISUMNX_L,LEN_IA,
45 . KXX(NIXX,*), CEP(*), NODLOCAL(*), IXX(*)
46
47
48
49 INTEGER I, NN, IAD, IAD_L, J, NB_L, NNOD, IE_L, OFF
50 INTEGER, DIMENSION(:), ALLOCATABLE :: IXX_L
51 INTEGER, DIMENSION(:,:), ALLOCATABLE :: KXX_L
52
53
54
55
56 ALLOCATE( ixx_l(isumnx_l) )
57
58 ALLOCATE( kxx_l(nixx,numelx_l) )
59
60 off = numelc+numeltg+numels+numelq+numelt+numelp+numelr
61 ie_l = 0
62 nb_l = 0
63
64 DO i = 1, numelx
65 IF(cep(off+i)==proc) THEN
66 nnod = kxx(3,i)
67 iad = kxx(4,i)
68
69 ie_l = ie_l + 1
70 DO j = 1, nixx
71 kxx_l(j,ie_l) = kxx(j,i)
72 ENDDO
73 iad_l = nb_l+1
74 kxx_l(4,ie_l) = iad_l
75 nb_l = nb_l + nnod
76 DO j = 1, nnod
77 ixx_l(iad_l+j-1) = nodlocal(ixx(iad+j-1))
78 ENDDO
79 ENDIF
80 ENDDO
81
84 len_ia = len_ia + numelx_l*nixx + isumnx_l
85
86
87
88 DEALLOCATE( ixx_l )
89
90 DEALLOCATE( kxx_l )
91
92 RETURN
void write_i_c(int *w, int *len)