Index: /issm/trunk/src/c/modules/ModelProcessorx/CreateParameters.cpp
===================================================================
--- /issm/trunk/src/c/modules/ModelProcessorx/CreateParameters.cpp	(revision 9514)
+++ /issm/trunk/src/c/modules/ModelProcessorx/CreateParameters.cpp	(revision 9515)
@@ -65,13 +65,5 @@
 	parameters->AddObject(iomodel->CopyConstantObject(IsprognosticEnum));
 	parameters->AddObject(iomodel->CopyConstantObject(IsthermalEnum));
-
-	/*Some parameters need to be processed from iomodel*/
-	char* rheology_law = NULL;
-	iomodel->Constant(&rheology_law,RheologyLawEnum);
-	if      (strcmp(rheology_law,"none")==0)      parameters->AddObject(new IntParam(RheologyLawEnum,NoneEnum));
-	else if (strcmp(rheology_law,"paterson")==0)  parameters->AddObject(new IntParam(RheologyLawEnum,PatersonEnum));
-	else if (strcmp(rheology_law,"arrhenius")==0) parameters->AddObject(new IntParam(RheologyLawEnum,ArrheniusEnum));
-	else _error_("Rheology law %s not supported",rheology_law);
-	xfree((void**)&rheology_law);
+	parameters->AddObject(iomodel->CopyConstantObject(RheologyLawEnum));
 
 	/*some parameters that did not come with the iomodel: */
Index: /issm/trunk/src/m/classes/model.m
===================================================================
--- /issm/trunk/src/m/classes/model.m	(revision 9514)
+++ /issm/trunk/src/m/classes/model.m	(revision 9515)
@@ -123,5 +123,5 @@
 		 rheology_B       = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1);
 		 rheology_n       = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',2);
-		 rheology_law     = modelfield('default','','marshall',true,'format','String');
+		 rheology_law     = modelfield('default','','marshall',true,'preprocess','StringToEnum','format','Integer');
 
 		 %Geometrical parameters
@@ -478,7 +478,7 @@
 			 end
 			 if isnumeric(structmd.rheology_law),
-				 if (structmd.rheology_law==272), md.rheology_law='none';      end
-				 if (structmd.rheology_law==368), md.rheology_law='paterson';  end
-				 if (structmd.rheology_law==369), md.rheology_law='arrhenius'; end
+				 if (structmd.rheology_law==272), md.rheology_law='None';      end
+				 if (structmd.rheology_law==368), md.rheology_law='Paterson';  end
+				 if (structmd.rheology_law==369), md.rheology_law='Arrhenius'; end
 			 end
 
@@ -722,5 +722,5 @@
 			 %Rheology law: what is the temperature dependence of B with T
 			 %available: none, paterson and arrhenius
-			 md.rheology_law='paterson';
+			 md.rheology_law='Paterson';
 
 			 %i/o:
Index: /issm/trunk/src/m/model/display/displaymaterials.m
===================================================================
--- /issm/trunk/src/m/model/display/displaymaterials.m	(revision 9514)
+++ /issm/trunk/src/m/model/display/displaymaterials.m	(revision 9515)
@@ -15,5 +15,5 @@
 fielddisplay(md,'rheology_B','flow law parameter [Pa/s^(1/n)]');
 fielddisplay(md,'rheology_n','Glen''s flow law exponent');
-fielddisplay(md,'rheology_law','law for the temperature dependance of the rheology: ''none'', ''paterson'' or ''arrhenius''');
+fielddisplay(md,'rheology_law','law for the temperature dependance of the rheology: ''None'', ''Paterson'' or ''Arrhenius''');
 fielddisplay(md,'heatcapacity','heat capacity [J/kg/K]');
 fielddisplay(md,'thermalconductivity','ice thermal conductivity [W/m/K]');
Index: /issm/trunk/src/m/model/ismodelselfconsistent.m
===================================================================
--- /issm/trunk/src/m/model/ismodelselfconsistent.m	(revision 9514)
+++ /issm/trunk/src/m/model/ismodelselfconsistent.m	(revision 9515)
@@ -176,5 +176,5 @@
 	message(['model not consistent: model ' md.name ' hydrostatic_adjustment field should be AbsoluteEnum or IncrementalEnum']);
 end
-if ~ismember({md.rheology_law},{'none' 'paterson' 'arrhenius'}),
+if ~ismember({md.rheology_law},{'None' 'Paterson' 'Arrhenius'}),
 	message(['model not consistent: model ' md.name ' rheology_law field should be ''none'' ''paterson'' or ''arrhenius''']);
 end
