Hi,
I want to impose the boundary condition on a complex system manually and I use the following lines. This code works very well when I use only one processor but when I try to use more than one processor I got some error that the function does not work. Could you please let me know how to implement these lines in parallel?
test=np.array(test, dtype='into')
if manual:
# Modif A: zero bc row & set diagonal to 1
A.ident_local(test)
A.apply('insert')
# Modif b: entry in the bc row is taken from bc_f
bc_values = interpolate(bc_f, V).vector().array()
# print bc_values
b_values = b.array()
b_values[test] = bc_values[test]
#print b_values
b.set_local(b_values)
b.apply('insert')