File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313% md=mechanicalproperties(md,md.inversion.vx_obs,md.inversion.vy_obs);
1414
1515% some checks
16- if length(vx )~=md .mesh .numberofvertices | length(vy )~=md .mesh .numberofvertices ,
16+ if length(vx )~=md .mesh .numberofvertices | length(vy )~=md .mesh .numberofvertices
1717 % error(['the input velocity should be of size ' num2str(md.mesh.numberofvertices) '!'])
1818end
1919if dimension(md .mesh )~=2
2020 error(' only 2d model supported yet' );
2121end
22- if any(md .flowequation .element_equation ~= 2 ),
22+ if any(md .flowequation .element_equation ~= 2 )
2323 disp(' Warning: the model has some non SSA elements. These will be treated like SSA'' s elements' );
2424end
2525
8282tau_xy= mu .* uyvx ;
8383
8484% compute principal properties of stress
85- for i= 1 : numberofelements ,
85+ for i= 1 : numberofelements
8686
8787 % compute stress and strainrate matrices
8888 stress= [tau_xx(i ) tau_xy(i )
You can’t perform that action at this time.
0 commit comments