Index: /issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp
===================================================================
--- /issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp	(revision 346)
+++ /issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp	(revision 347)
@@ -147,4 +147,5 @@
 	materials = new DataSet(MaterialsEnum());
 
+
 	/*Now, is the flag macayaealpattyn on? otherwise, do nothing: */
 	if (!model->ismacayealpattyn)goto cleanup_and_return;
@@ -153,4 +154,5 @@
 	analysis_type=AnalysisTypeAsEnum(model->analysis_type);
 
+	
 	/*Width of elements: */
 	if(strcmp(model->meshtype,"2d")==0){
@@ -160,4 +162,5 @@
 		elements_width=6; //penta elements
 	}
+
 
 
@@ -173,4 +176,5 @@
 	}
 
+
 	MeshPartitionx(&epart, &npart,model->numberofelements,model->numberofnodes,model->elements, model->numberofelements2d,model->numberofnodes2d,model->elements2d,model->numlayers,elements_width, model->meshtype,num_procs);
 
@@ -178,5 +182,5 @@
 	xfree((void**)&model->elements);
 	xfree((void**)&model->elements2d);
-		
+
 
 	/*Deal with rifts, they have to be included into one partition only, not several: */
@@ -337,4 +341,5 @@
 		xfree((void**)&model->B);
 		xfree((void**)&model->n);
+
 	}
 	else{ //	if (strcmp(meshtype,"2d")==0)
@@ -563,5 +568,5 @@
 	ModelFetchData((void**)&model->gridonsurface,NULL,NULL,model_handle,"gridonsurface","Matrix","Mat");
 
-	
+
 	/*Get number of dofs per node: */
 	DistributeNumDofs(&node_numdofs,analysis_type);
Index: /issm/trunk/src/c/ModelProcessorx/Model.cpp
===================================================================
--- /issm/trunk/src/c/ModelProcessorx/Model.cpp	(revision 346)
+++ /issm/trunk/src/c/ModelProcessorx/Model.cpp	(revision 347)
@@ -277,5 +277,4 @@
 
 	ModelFetchData((void**)&model->meshtype,NULL,NULL,model_handle,"type","String",NULL);
-
 	/*!Get numberofelements and numberofnodes: */
 	ModelFetchData((void**)&model->numberofnodes,NULL,NULL,model_handle,"numberofgrids","Integer",NULL);
Index: /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateConstraintsBedSlopeCompute.cpp
===================================================================
--- /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateConstraintsBedSlopeCompute.cpp	(revision 347)
+++ /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateConstraintsBedSlopeCompute.cpp	(revision 347)
@@ -0,0 +1,31 @@
+/*
+ * CreateConstraintsBedSlopeCompute.c:
+ */
+
+#undef __FUNCT__ 
+#define __FUNCT__ "CreateConstraintsBedSlopeCompute"
+
+#include "../../DataSet/DataSet.h"
+#include "../../toolkits/toolkits.h"
+#include "../../EnumDefinitions/EnumDefinitions.h"
+#include "../../objects/objects.h"
+#include "../../shared/shared.h"
+#include "../Model.h"
+
+
+void	CreateConstraintsBedSlopeCompute(DataSet** pconstraints, Model* model,ConstDataHandle model_handle){
+
+
+	DataSet* constraints = NULL;
+
+	/*Create constraints: */
+	constraints = new DataSet(ConstraintsEnum());
+
+	/*Now, is the flag isstokes on? otherwise, do nothing: */
+	if (!model->isstokes)goto cleanup_and_return;
+	
+	cleanup_and_return:	
+	
+	/*Assign output pointer: */
+	*pconstraints=constraints;
+}
Index: /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateElementsNodesAndMaterialsBedSlopeCompute.cpp
===================================================================
--- /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateElementsNodesAndMaterialsBedSlopeCompute.cpp	(revision 347)
+++ /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateElementsNodesAndMaterialsBedSlopeCompute.cpp	(revision 347)
@@ -0,0 +1,39 @@
+/*
+ * CreateElementsNodesAndMaterialsBedSlopeCompute.c:
+ */
+
+#undef __FUNCT__ 
+#define __FUNCT__ "CreateElementsNodesAndMaterialsBedSlopeCompute"
+
+#include "../../DataSet/DataSet.h"
+#include "../../toolkits/toolkits.h"
+#include "../../EnumDefinitions/EnumDefinitions.h"
+#include "../../objects/objects.h"
+#include "../../shared/shared.h"
+#include "../../MeshPartitionx/MeshPartitionx.h"
+#include "../Model.h"
+
+
+void	CreateElementsNodesAndMaterialsBedSlopeCompute(DataSet** pelements,DataSet** pnodes, DataSet** pmaterials, Model* model,ConstDataHandle model_handle){
+
+
+	/*DataSets: */
+	DataSet*    elements  = NULL;
+	DataSet*    nodes = NULL;
+	DataSet*    materials = NULL;
+	
+	/*First create the elements, nodes and material properties: */
+	elements  = new DataSet(ElementsEnum());
+	nodes     = new DataSet(NodesEnum());
+	materials = new DataSet(MaterialsEnum());
+
+	/*Now, is the flag isstokes on? otherwise, do nothing: */
+	if (!model->isstokes)goto cleanup_and_return;
+
+	cleanup_and_return:
+
+	/*Assign output pointer: */
+	*pelements=elements;
+	*pnodes=nodes;
+	*pmaterials=materials;
+}
Index: /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateLoadsBedSlopeCompute.cpp
===================================================================
--- /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateLoadsBedSlopeCompute.cpp	(revision 347)
+++ /issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateLoadsBedSlopeCompute.cpp	(revision 347)
@@ -0,0 +1,33 @@
+/*! \file CreateLoadsBedSlopeCompute.c:
+ */
+
+#undef __FUNCT__ 
+#define __FUNCT__ "CreateLoadsBedSlopeCompute"
+
+#include "../../DataSet/DataSet.h"
+#include "../../toolkits/toolkits.h"
+#include "../../EnumDefinitions/EnumDefinitions.h"
+#include "../../objects/objects.h"
+#include "../../shared/shared.h"
+#include "../../include/macros.h"
+#include "../Model.h"
+
+
+void	CreateLoadsBedSlopeCompute(DataSet** ploads, Model* model,ConstDataHandle model_handle){
+
+	DataSet*    loads    = NULL;
+
+	/*Create loads: */
+	loads   = new DataSet(LoadsEnum());
+
+	/*Now, is the flag isstokes on? otherwise, do nothing: */
+	if (!model->isstokes)goto cleanup_and_return;
+
+	cleanup_and_return:
+	
+	/*Assign output pointer: */
+	*ploads=loads;
+
+}
+
+
