Index: /issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp	(revision 27717)
+++ /issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp	(revision 27718)
@@ -298,4 +298,5 @@
 			basis[5]=gauss->coord3*(1.+zeta)/2.;
 			return;
+			#ifndef _HAVE_AD_
 		case P1bubbleEnum: case P1bubblecondensedEnum:
 			basis[0]=gauss->coord1*(1.-zeta)/2.;
@@ -459,4 +460,5 @@
 			basis[14]=gauss->coord3*(-8./3.)*(zeta-1.0)*zeta*(zeta+0.5)*(zeta+1.);
 			return;
+			#endif
 		default:
 			_error_("Element type "<<EnumToStringx(finiteelement)<<" not supported yet");
@@ -541,4 +543,5 @@
 			dbasis[NUMNODESP1*2+5]   = .5*gauss->coord3;
 			return;
+			#ifndef _HAVE_AD_
 		case P1bubbleEnum: case P1bubblecondensedEnum:
 			/*Nodal function 1*/
@@ -1057,4 +1060,5 @@
 
 			return;
+			#endif
 		default:
 			_error_("Element type "<<EnumToStringx(finiteelement)<<" not supported yet");
