Index: /issm/trunk-jpl/src/m/extrusion/DepthAverage.m
===================================================================
--- /issm/trunk-jpl/src/m/extrusion/DepthAverage.m	(revision 17809)
+++ /issm/trunk-jpl/src/m/extrusion/DepthAverage.m	(revision 17810)
@@ -9,5 +9,5 @@
 
 %check that the model given in input is 3d
-if ~strcmp(md.mesh.elementtype(),'3D');
+if ~strcmp(md.mesh.elementtype(),'Penta');
 	error('DepthAverage error message: the model given in input must be 3d')
 end
Index: /issm/trunk-jpl/src/m/extrusion/DepthAverage.py
===================================================================
--- /issm/trunk-jpl/src/m/extrusion/DepthAverage.py	(revision 17809)
+++ /issm/trunk-jpl/src/m/extrusion/DepthAverage.py	(revision 17810)
@@ -15,5 +15,5 @@
 
 	#check that the model given in input is 3d
-	if md.mesh.domaintype().lower() != '3d':
+	if md.mesh.elementtype() != 'Penta':
 		raise TypeError('DepthAverage error message: the model given in input must be 3d')
 
