Index: /issm/trunk-jpl/src/m/plot/processmesh.js
===================================================================
--- /issm/trunk-jpl/src/m/plot/processmesh.js	(revision 20193)
+++ /issm/trunk-jpl/src/m/plot/processmesh.js	(revision 20194)
@@ -15,18 +15,16 @@
 	var x,y,z,elements,is2d,isplanet;
 
-	//some checks
+	console.log(md);
+	console.log(md.mesh);
+	console.log(md.mesh.numberofvertices)
+
 	if (md.mesh.numberofvertices==0){
 		throw Error('plot error message: mesh is empty');
 	}
 
+
 	if (md.mesh.numberofvertices==md.mesh.numberofelements){
 		throw Error(['plot error message: the number of elements is the same as the number of nodes...']);
 	}
-
-	//special case for mesg 2dvertical
-	if (md.mesh.domaintype() === '2Dvertical') return processmesh(md.mesh,options);
-
-	//special case for mesh 3dsurface
-	if (md.mesh.domaintype() == '3Dsurface') return processmesh(md.mesh,options);
 
 	if (options.getfieldvalue('coord','xy') !== 'latlon'){
Index: /issm/trunk-jpl/src/m/plot/processmesh.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/processmesh.m	(revision 20193)
+++ /issm/trunk-jpl/src/m/plot/processmesh.m	(revision 20194)
@@ -17,5 +17,5 @@
 %special case for mesg 2dvertical
 if strcmp(domaintype(md.mesh),'2Dvertical'),
-	[x y z elements is2d isplanet] = processmesh(md.mesh,options);
+	[x y z elements is2d isplanet] = processmesh(md,options);
 	return;
 end
@@ -23,5 +23,5 @@
 %special case for mesh 3dsurface
 if strcmp(domaintype(md.mesh),'3Dsurface'),
-	[x y z elements is2d isplanet] = processmesh(md.mesh,options);
+	[x y z elements is2d isplanet] = processmesh(md,options);
 	return;
 end
