%Test Name: SquareShelfConstrainedStressHOAdolc
md=triangle(model(),'../Exp/Square.exp',180000.);
md=setmask(md,'all','');
md=parameterize(md,'../Par/SquareShelfConstrained.par');
md=extrude(md,3,2.);
md=setflowequation(md,'HO','all');
md.cluster=generic('name',oshostname(),'np',1);
md.stressbalance.requested_outputs={'default','StressTensorxx','StressTensoryy','StressTensorzz','StressTensorxy','StressTensorxz','StressTensoryz'};
md.autodiff.isautodiff=true;
md.toolkits.DefaultAnalysis=issmgslsolver();
md.verbose=verbose('autodiff',true);
md=solve(md,'Stressbalance');

%Fields and tolerances to track changes
field_names     ={'Vx','Vy','Vz','Vel','Pressure',...
	'StressTensorxx','StressTensoryy','StressTensorzz','StressTensorxy','StressTensorxz','StressTensoryz'};
field_tolerances={1e-09,1e-09,1e-09,1e-09,1e-09,...
	1e-09,1e-09,1e-09,1e-09,1e-09,2e-09};
field_values={...
	(md.results.StressbalanceSolution.Vx),...
	(md.results.StressbalanceSolution.Vy),...
	(md.results.StressbalanceSolution.Vz),...
	(md.results.StressbalanceSolution.Vel),...
	(md.results.StressbalanceSolution.Pressure),...
	(md.results.StressbalanceSolution.StressTensorxx),...
	(md.results.StressbalanceSolution.StressTensoryy),...
	(md.results.StressbalanceSolution.StressTensorzz),...
	(md.results.StressbalanceSolution.StressTensorxy),...
	(md.results.StressbalanceSolution.StressTensorxz),...
	(md.results.StressbalanceSolution.StressTensoryz),...
	};
