Skip to content

Commit 039d8b8

Browse files
committedAug 18, 2016
up mtf.shape
1 parent c153b9c commit 039d8b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎assemb.py

+7
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def collecting(self):
142142
funQ = self._funQ
143143
funI = self._funI
144144

145+
nrow, ncol = 0, 0
145146
print('\n=Collecting all the blocks')
146147
for dom in domains:
147148
ii = domains.getIndexDom(dom['name'])
@@ -180,6 +181,9 @@ def collecting(self):
180181
spaces = (space_d, space_n)
181182
self.spaces[ii] = spaces
182183

184+
ncol += space_test_d.global_dof_count + space_test_n.global_dof_count
185+
nrow += space_trial_d.global_dof_count + space_trial_n.global_dof_count
186+
183187
# the kernel type is managed in __init__
184188
opK = funK(space_trial_d, space_range_d, space_test_d, k)
185189
opV = funV(space_trial_n, space_range_d, space_test_d, k)
@@ -232,6 +236,9 @@ def collecting(self):
232236
self.opX = opX
233237
self.opI = opI
234238

239+
self.shape = (nrow, ncol)
240+
print('#shape:', self.shape)
241+
235242
self._collected = True
236243
self.tcollect = time() - tinit
237244
return self.tcollect

0 commit comments

Comments
 (0)
Please sign in to comment.