Index: /issm/trunk/src/c/objects/Node.cpp
===================================================================
--- /issm/trunk/src/c/objects/Node.cpp	(revision 7514)
+++ /issm/trunk/src/c/objects/Node.cpp	(revision 7515)
@@ -85,6 +85,14 @@
 	if (iomodel->numbernodetoelementconnectivity) this->inputs->AddInput(new IntInput(NumberNodeToElementConnectivityEnum,(IssmInt)iomodel->numbernodetoelementconnectivity[io_index]));
 	if (analysis_type==DiagnosticHorizAnalysisEnum) this->inputs->AddInput(new IntInput(ApproximationEnum,(IssmInt)iomodel->vertices_type[io_index]));
-
+	
 	/*set single point constraints: */
+
+	/*spc all nodes on water*/
+	if (!iomodel->gridonwater) _error_("iomodel->gridonwater is NULL");
+	if (iomodel->gridonwater[io_index]){
+		for(k=1;k<=gsize;k++){
+			this->FreezeDof(k);
+		}
+	}
 
 	/*Diagnostic Horiz*/
@@ -115,11 +123,5 @@
 			}
 		}
-		/*spc all nodes on water*/
-		if (!iomodel->gridonwater) _error_("iomodel->gridonwater is NULL");
-		if (iomodel->gridonwater[io_index]){
-			for(k=1;k<=gsize;k++){
-				this->FreezeDof(k);
-			}
-		}
+		
 	}
 
