In short, inversions are not implemented with SIA because you can determine the rheology analytically, although the error message you are getting indicates that the size of md.materials.rheology_B
is wrong (it is neither equal to numberofvertices
, nor numberofelements
). In any case, the surface speed (with SIA) is simply
v = -2*(rho*g)^n*surf.^(n-1).*slope.*A/(n+1).*H.^(n+1)
where
A = md.materials.rheology_B.^-3;
(see contrib/morlighem/sia.m
). If you know the surface speed, you can find B easily.
I hope this makes sense
Cheers
Mathieu