md=mesh(model,'../Exp/Square.exp',180000);
md=setmask(md,'all','');
md=parameterize(md,'../Par/SquareShelf.par');
md=extrude(md,3,1);
md=setelementstype(md,'macayeal','all');
md.cluster=none;
md.thermal.spctemperature=[md.thermal.spctemperature, md.thermal.spctemperature+5, md.thermal.spctemperature+10, md.thermal.spctemperature+15; 1.5 2.5 3.5 4];
md.timestepping.time_step=1;
md.timestepping.final_time=4;
md=solve(md,ThermalSolutionEnum);

%Fields and tolerances to track changes
field_names     ={'Temperature1','BasalforcingsMeltingRate1','Temperature2','BasalforcingsMeltingRate2','Temperature3','BasalforcingsMeltingRate3','Temperature4','BasalforcingsMeltingRate4'};
field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13};
field_values={...
	PatchToVec(md.results.ThermalSolution(1).Temperature),...
	PatchToVec(md.results.ThermalSolution(1).BasalforcingsMeltingRate),...
	PatchToVec(md.results.ThermalSolution(2).Temperature),...
	PatchToVec(md.results.ThermalSolution(2).BasalforcingsMeltingRate),...
	PatchToVec(md.results.ThermalSolution(3).Temperature),...
	PatchToVec(md.results.ThermalSolution(3).BasalforcingsMeltingRate),...
	PatchToVec(md.results.ThermalSolution(4).Temperature),...
	PatchToVec(md.results.ThermalSolution(4).BasalforcingsMeltingRate),...
	};
