35
37
38
39
40#include "implicit_f.inc"
41#include "param_c.inc"
42#include "com01_c.inc"
43
44
45
46 INTEGER LEN_AM,LEN_IA,P,NODLOCAL(*),N_ANCHOR_REMOTE_L,N_ANCHOR_REMOTE_SEND_L
47 TYPE(SEATBELT_REMOTE_NODES_STRUCT) ANCHOR_REMOTE_L,ANCHOR_REMOTE_SEND_L
48
49
50
51 INTEGER NLOCAL
53
54
55
56 INTEGER ,J,K,OPTIONAL_NODE,L_TABLE,NPT
57
58
59 DO i = 1, nslipring
60
62
70 len_ia = len_ia + 10
71
78 len_am = len_am + 10
79
81
90
91 optional_node = 0
92 IF (
slipring(i)%FRAM(j)%ORIENTATION_NODE > 0)
THEN
93 optional_node = nodlocal(
slipring(i)%FRAM(j)%ORIENTATION_NODE)
94 ENDIF
96
99 len_ia = len_ia + 14
100
114 len_am = len_am + 35
115
116 ENDDO
117
118 ENDIF
119
120 ENDDO
121
122 DO i = 1, nretractor
123
143 ENDDO
146 len_ia = len_ia + 23 +
retractor(i)%INACTI_NNOD
164 l_table = 0
165 DO k=1,2
168 l_table = l_table + 2*npt
171 ENDIF
172 ENDDO
173 len_am = len_am + 22 + l_table
174 ENDIF
175
176 ENDDO
177
178 IF (n_anchor_remote_l > 0) THEN
179 CALL write_i_c(anchor_remote_l%ADD_PROC, nspmd+1)
180 CALL write_i_c(anchor_remote_l%NODE, n_anchor_remote_l)
181 len_ia = len_ia + nspmd + 1 + n_anchor_remote_l
182 ENDIF
183
184 IF (n_anchor_remote_send_l > 0) THEN
185 CALL write_i_c(anchor_remote_send_l%ADD_PROC, nspmd+1)
186 CALL write_i_c(anchor_remote_send_l%NODE, n_anchor_remote_send_l)
187 len_ia = len_ia + nspmd + 1 + n_anchor_remote_send_l
188 ENDIF
189
190 IF (p ==1) THEN
192 len_ia = len_ia + 1
199 len_ia = len_ia + 4
200 ENDDO
201 ENDIF
202 ENDIF
203
204
205 RETURN
integer nseatbelt_th_proc
type(retractor_struct), dimension(:), allocatable retractor
type(seatbelt_th_exch_struct), dimension(:), allocatable seatbelt_th_exch
type(slipring_struct), dimension(:), allocatable slipring
subroutine write_db(a, n)
void write_i_c(int *w, int *len)