Index: /issm/trunk/src/c/objects/Beam.cpp
===================================================================
--- /issm/trunk/src/c/objects/Beam.cpp	(revision 3514)
+++ /issm/trunk/src/c/objects/Beam.cpp	(revision 3515)
@@ -17,4 +17,5 @@
 #include "../include/typedefs.h"
 #include "../include/macros.h"
+extern int my_rank;
 
 /*Object constructors and destructor*/
@@ -77,5 +78,5 @@
 	/*hooks: */
 	beam_matice_id=i+1; //refers to the corresponding material property card
-	beam_matpar_id=iomodel->numberofvertices-iomodel->numberofvertices+1;//refers to the corresponding matpar property card
+	beam_matpar_id=iomodel->numberofvertices2d*(iomodel->numlayers-1)+1;//refers to the corresponding matpar property card
 	beam_numpar_id=1;
 	beam_node_ids[0]=i+1;
@@ -130,4 +131,5 @@
 	hmatpar.configure(materialsin);
 	hnumpar.configure(parametersin);
+
 
 }
