Index: /issm/trunk-jpl/examples/Pig/CheatSheet.m
===================================================================
--- /issm/trunk-jpl/examples/Pig/CheatSheet.m	(revision 18248)
+++ /issm/trunk-jpl/examples/Pig/CheatSheet.m	(revision 18249)
@@ -1,18 +1,18 @@
-if perform(org,'ModelHO')
-  % Load Model
-  mdHO = loadmodel('./Models/PIG.Control_drag');
-  md.inversion.iscontrol=0;
+if any(steps==6)
+	% Load Model
+	md = loadmodel('./Models/PIG.Control_drag');
+	md.inversion.iscontrol=0;
 
-  disp('   Extruding mesh')
-  number_of_layers=3;
-  md=extrude(md,number_of_layers,0.9);
+	disp('   Extruding mesh')
+	number_of_layers=3;
+	md=extrude(md,number_of_layers,0.9);
 
-  disp('   Using HO Ice Flow Model')
-  md=setflowequation(md, 'HO', 'all');
+	disp('   Using HO Ice Flow Model')
+	md=setflowequation(md, 'HO', 'all');
 
-  % Solve
-  md=solve(md,StressbalanceSolutionEnum);
+	% Solve
+	md=solve(md,StressbalanceSolutionEnum);
 
-  % Save Model
-  save ./Models/PIG.ModelHO md;
+	% Save Model
+	save ./Models/PIG.ModelHO md;
 end
