Index: /issm/trunk/src/c/objects/Materials/Matice.cpp
===================================================================
--- /issm/trunk/src/c/objects/Materials/Matice.cpp	(revision 4672)
+++ /issm/trunk/src/c/objects/Materials/Matice.cpp	(revision 4673)
@@ -50,5 +50,5 @@
 		/*Get n*/
 		if (iomodel->rheology_n) {
-			for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[int(iomodel->elements[num_vertices*index+i]-1)];
+			for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[index];
 			this->inputs->AddInput(new TriaVertexInput(RheologyNEnum,nodeinputs));
 		}
@@ -70,5 +70,5 @@
 		/*Get n*/
 		if (iomodel->rheology_n) {
-			for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[int(iomodel->elements[num_vertices*index+i]-1)];
+			for(i=0;i<num_vertices;i++) nodeinputs[i]=iomodel->rheology_n[index];
 			this->inputs->AddInput(new PentaVertexInput(RheologyNEnum,nodeinputs));
 		}
