-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: assign
of subfunctions
do not work as expected before op2.par_loop when run in parallel
#3150
Comments
What does |
The output of (array([0., 0., 0., 0., 0., 0., 0., 0., 0.]), array([[ 0.30901699, -0.80901699, 0.5 ],
[-0.30901699, -0.80901699, 0.5 ],
[ 0. , -0.52573111, 0.85065081],
[ 0.5 , -0.30901699, 0.80901699],
[-0.5 , -0.30901699, 0.80901699],
[-0.80901699, -0.5 , 0.30901699],
[-0.85065081, 0. , 0.52573111],
[ 0.5 , 0.30901699, 0.80901699],
[ 0. , 0. , 1. ],
[ 0. , 0.52573111, 0.85065081],
[-0.5 , 0.30901699, 0.80901699],
[-1. , 0. , 0. ],
[ 0.30901699, 0.80901699, 0.5 ],
[-0.80901699, 0.5 , 0.30901699],
[-0.30901699, 0.80901699, 0.5 ],
[ 0. , -1. , 0. ],
[ 0.52573111, -0.85065081, 0. ],
[-0.52573111, -0.85065081, 0. ],
[ 0.80901699, -0.5 , 0.30901699],
[ 0.85065081, 0. , 0.52573111],
[-0.80901699, -0.5 , -0.30901699],
[-0.85065081, 0. , -0.52573111],
[ 0.80901699, 0.5 , 0.30901699],
[ 0.52573111, 0.85065081, 0. ],
[-0.52573111, 0.85065081, 0. ],
[-0.80901699, 0.5 , -0.30901699],
[ 0. , 1. , 0. ]]))
(array([0., 0., 0.]), array([[ 0.30901699, 0.80901699, -0.5 ],
[-0.30901699, 0.80901699, -0.5 ],
[ 0. , 0.52573111, -0.85065081],
[-0.5 , 0.30901699, -0.80901699],
[ 0.80901699, 0.5 , -0.30901699],
[ 0.5 , 0.30901699, -0.80901699],
[ 0.85065081, 0. , -0.52573111],
[ 0.5 , -0.30901699, -0.80901699],
[ 0. , 0. , -1. ],
[ 0. , -0.52573111, -0.85065081],
[-0.5 , -0.30901699, -0.80901699],
[ 1. , 0. , 0. ],
[ 0.30901699, -0.80901699, -0.5 ],
[ 0.80901699, -0.5 , -0.30901699],
[-0.30901699, -0.80901699, -0.5 ]])) |
What about |
I think this feature in undertested as Firedrake assembles block-by-block. For instance, do we not need |
The values are all False in both cases. |
Great spot! This does look like it could be responsible. |
On second thought, I don't think that would be the right thing to do. We should at least find out why this is happening (and perhaps submit an xfailing test). |
This is fixed by OP2/PyOP2#710 |
Describe the bug
The data of functions from MixedFunctionSpace seems not update properly when using assign for its subfunctions and run in parallel.
Steps to Reproduce
Consider the following code:
The output of command
is
Expected behavior
The output should be (which is the output by replacing
assign
byinterpolate
)Environment:
firedrake-status
The text was updated successfully, but these errors were encountered: