Index: /issm/trunk/src/c/modules/Qmux/SpawnCoreSerial.cpp
===================================================================
--- /issm/trunk/src/c/modules/Qmux/SpawnCoreSerial.cpp	(revision 4487)
+++ /issm/trunk/src/c/modules/Qmux/SpawnCoreSerial.cpp	(revision 4488)
@@ -22,5 +22,5 @@
 
 	int i;
-	
+
 	//inputs to matlab routine
 	mxArray* mxvariables=NULL;
@@ -31,5 +31,5 @@
 
 	//mexCallMATLAB arrays
-	mxArray* array[5];
+	mxArray* array[4];
 
 	//output from SpawnCore in matlab routine.
@@ -53,9 +53,9 @@
 	//call SpwanCore matlab routine.
 	array[0]=femmodel;
-	array[2]=mxvariables;
-	array[3]=mxvariabledescriptors;
-	array[4]=mxcounter;
+	array[1]=mxvariables;
+	array[2]=mxvariabledescriptors;
+	array[3]=mxcounter;
 
-	mexCallMATLAB(1,&mxresponses,5,array,"SpawnCore");
+	mexCallMATLAB(1,&mxresponses,4,array,"SpawnCore");
 
 	/*copy responses back to dakota: */
