Index: /issm/trunk-jpl/src/c/classes/bamg/Geometry.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/bamg/Geometry.cpp	(revision 13254)
+++ /issm/trunk-jpl/src/c/classes/bamg/Geometry.cpp	(revision 13255)
@@ -183,5 +183,5 @@
 			if(verbose>5) _printLine_("      processing hVertices");
 			for (i=0;i< nbv;i++){
-				if (!xIsNan<IssmDouble>(bamgopts->hVertices[i])){
+				if (!xIsNan<IssmPDouble>(bamgopts->hVertices[i])){
 					vertices[i].m=Metric((double)bamgopts->hVertices[i]);
 				}
Index: /issm/trunk-jpl/src/c/modules/Bamgx/Bamgx.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/Bamgx/Bamgx.cpp	(revision 13254)
+++ /issm/trunk-jpl/src/c/modules/Bamgx/Bamgx.cpp	(revision 13255)
@@ -119,5 +119,5 @@
 			if (verbosity>1) _printLine_("   Merging Metric with hVertices...");
 			for (i=0;i<BTh.nbv;i++){
-				if (!xIsNan<IssmDouble>(bamgopts->hVertices[i])){
+				if (!xIsNan<IssmPDouble>(bamgopts->hVertices[i])){
 					BTh[i].m=Metric((float)bamgopts->hVertices[i]);
 				}
@@ -129,5 +129,5 @@
 			if (verbosity>1) _printLine_("   Merging Metric with hminVertices...");
 			for (i=0;i<BTh.nbv;i++){
-				if (!xIsNan<IssmDouble>(bamgopts->hminVertices[i])){
+				if (!xIsNan<IssmPDouble>(bamgopts->hminVertices[i])){
 					Metric M=BTh.vertices[i].m;
 					EigenMetric Vp(M/coef);
@@ -142,5 +142,5 @@
 			if (verbosity>1) _printLine_("   Merging Metric with hmaxVertices...");
 			for (i=0;i<BTh.nbv;i++){
-				if (!xIsNan<IssmDouble>(bamgopts->hmaxVertices[i])){
+				if (!xIsNan<IssmPDouble>(bamgopts->hmaxVertices[i])){
 					Metric M=BTh.vertices[i].m;
 					EigenMetric Vp(M/coef);
