Note that this is the same as the Firedrake result and not the same as the Matlab code. I therefore claim that the problem is in the Matlab code, and not a bug in Firedrake
You can see that even though mu_bar is the same as the one obtained from firedrake, the matrix entries are different. I don't understand why.. The rest of the matrices, i.e. M, A and C_lam, have the same entries as in firedrake.
Thanks,
Anna.
On 08/06/16 14:38, Fabio Luporini wrote:
Hello Anna,
under the Inequality constraint folder, I'm running "python buoy-swe.py" and, besides the TSFC/COFFEE prints, I'm obtaining:
mu_bar
------
[ 0.34693095 0.28326793 0.20030068 0. -0. ]
Matrix b_mu
-----------
[[ 1.37331778 0.6536432 0. 0. 0. ]
[ 0.6536432 2.33042494 0.50155807 0. 0.]
[ 0. 0.50155807 1.54031885 0.20775216 0.]
[ 0. 0. 0.20775216 0.20775216 0. ]
[ 0. 0. 0. 0. 0. ]]
What values do you expect for b_mu ? Am I running the right thing?
I tried switching off some optimisations but I still get the same output.
I have a simple question regarding a matrix assembly in Firedrake which I believe is not computed correctly.
The relevant code can be found
here and the issue is with the B_mu matrix in solvers.py, line 51. I compare the result with my own Matlab code and the two don't agree. Also, the rest of the matrices M, A, C_lam agree in both sets of code.