Index: /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 17412)
+++ /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 17413)
@@ -2171,9 +2171,10 @@
 		groundedicelevelset_input->GetInputValue(&groundedice,gauss);
 
+		/*New X axis          New Z axis*/
+		xz_plane[0]=1.;       xz_plane[3]=-slopex;  
+		xz_plane[1]=0.;       xz_plane[4]=-slopey;  
+		xz_plane[2]=slopex;   xz_plane[5]=1.;          
+
 		if(groundedice>0){
-			/*New X axis          New Z axis*/
-			xz_plane[0]=1.;       xz_plane[3]=-slopex;  
-			xz_plane[1]=0.;       xz_plane[4]=-slopey;  
-			xz_plane[2]=slopex;   xz_plane[5]=1.;          
 			if(this->nodes[indices[i]]->GetApproximation()==FSvelocityEnum){
 				this->nodes[indices[i]]->DofInSSet(2); //vz 
@@ -2185,8 +2186,4 @@
 		}
 		else{
-			/*New X axis          New Z axis*/
-			xz_plane[0]=1.;       xz_plane[3]=0;  
-			xz_plane[1]=0.;       xz_plane[4]=0;  
-			xz_plane[2]=0;        xz_plane[5]=1.;          
 			if(this->nodes[indices[i]]->GetApproximation()==FSvelocityEnum){
 				this->nodes[indices[i]]->DofInFSet(2); //vz
