Index: /issm/trunk-jpl/test/NightlyRun/ad_maxalloc.m
===================================================================
--- /issm/trunk-jpl/test/NightlyRun/ad_maxalloc.m	(revision 13535)
+++ /issm/trunk-jpl/test/NightlyRun/ad_maxalloc.m	(revision 13535)
@@ -0,0 +1,19 @@
+md=triangle(model,'../Exp/Square.exp',100000);
+md=setmask(md,'all','');
+md=parameterize(md,'../Par/SquareShelfConstrained.par');
+md=setflowequation(md,'macayeal','all');
+md.cluster=generic('name',oshostname(),'np',3);
+
+md.autodiff.isautodiff=true;
+md.verbose.autodiff=true;
+md.autodiff.independents={...
+	independent('name','Thickness','type','vertex','nods',md.mesh.numberofvertices,'fov_forward_indices',(1:md.mesh.numberofvertices)')
+	};
+
+md.autodiff.dependents={...
+	dependent('name','MaxVel','type','scalar')
+	};
+
+md.autodiff.driver='fov_forward';
+
+md=solve(md,TransientSolutionEnum);
