Index: /issm/trunk/src/c/objects/Node.cpp
===================================================================
--- /issm/trunk/src/c/objects/Node.cpp	(revision 5531)
+++ /issm/trunk/src/c/objects/Node.cpp	(revision 5532)
@@ -94,6 +94,9 @@
 			if (!iomodel->vertices_type) ISSMERROR("iomodel->vertices_type is NULL");
 			if (iomodel->vertices_type[io_index]==MacAyealApproximationEnum && !iomodel->gridonbed[io_index]){
-				for(k=1;k<=numdofs;k++){
-					this->FreezeDof(k);
+				for(k=1;k<=numdofs;k++) this->FreezeDof(k);
+			}
+			if (iomodel->vertices_type[io_index]==MacAyealPattynApproximationEnum && iomodel->gridonmacayeal[io_index]){
+				if(!iomodel->gridonbed[io_index]){
+					for(k=1;k<=numdofs;k++) this->FreezeDof(k);
 				}
 			}
