Changeset 9515
- Timestamp:
- 08/31/11 11:07:57 (14 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/ModelProcessorx/CreateParameters.cpp
r9479 r9515 65 65 parameters->AddObject(iomodel->CopyConstantObject(IsprognosticEnum)); 66 66 parameters->AddObject(iomodel->CopyConstantObject(IsthermalEnum)); 67 68 /*Some parameters need to be processed from iomodel*/ 69 char* rheology_law = NULL; 70 iomodel->Constant(&rheology_law,RheologyLawEnum); 71 if (strcmp(rheology_law,"none")==0) parameters->AddObject(new IntParam(RheologyLawEnum,NoneEnum)); 72 else if (strcmp(rheology_law,"paterson")==0) parameters->AddObject(new IntParam(RheologyLawEnum,PatersonEnum)); 73 else if (strcmp(rheology_law,"arrhenius")==0) parameters->AddObject(new IntParam(RheologyLawEnum,ArrheniusEnum)); 74 else _error_("Rheology law %s not supported",rheology_law); 75 xfree((void**)&rheology_law); 67 parameters->AddObject(iomodel->CopyConstantObject(RheologyLawEnum)); 76 68 77 69 /*some parameters that did not come with the iomodel: */ -
issm/trunk/src/m/classes/model.m
r9513 r9515 123 123 rheology_B = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1); 124 124 rheology_n = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',2); 125 rheology_law = modelfield('default','','marshall',true,' format','String');125 rheology_law = modelfield('default','','marshall',true,'preprocess','StringToEnum','format','Integer'); 126 126 127 127 %Geometrical parameters … … 478 478 end 479 479 if isnumeric(structmd.rheology_law), 480 if (structmd.rheology_law==272), md.rheology_law=' none'; end481 if (structmd.rheology_law==368), md.rheology_law=' paterson'; end482 if (structmd.rheology_law==369), md.rheology_law=' arrhenius'; end480 if (structmd.rheology_law==272), md.rheology_law='None'; end 481 if (structmd.rheology_law==368), md.rheology_law='Paterson'; end 482 if (structmd.rheology_law==369), md.rheology_law='Arrhenius'; end 483 483 end 484 484 … … 722 722 %Rheology law: what is the temperature dependence of B with T 723 723 %available: none, paterson and arrhenius 724 md.rheology_law=' paterson';724 md.rheology_law='Paterson'; 725 725 726 726 %i/o: -
issm/trunk/src/m/model/display/displaymaterials.m
r9465 r9515 15 15 fielddisplay(md,'rheology_B','flow law parameter [Pa/s^(1/n)]'); 16 16 fielddisplay(md,'rheology_n','Glen''s flow law exponent'); 17 fielddisplay(md,'rheology_law','law for the temperature dependance of the rheology: '' none'', ''paterson'' or ''arrhenius''');17 fielddisplay(md,'rheology_law','law for the temperature dependance of the rheology: ''None'', ''Paterson'' or ''Arrhenius'''); 18 18 fielddisplay(md,'heatcapacity','heat capacity [J/kg/K]'); 19 19 fielddisplay(md,'thermalconductivity','ice thermal conductivity [W/m/K]'); -
issm/trunk/src/m/model/ismodelselfconsistent.m
r9468 r9515 176 176 message(['model not consistent: model ' md.name ' hydrostatic_adjustment field should be AbsoluteEnum or IncrementalEnum']); 177 177 end 178 if ~ismember({md.rheology_law},{' none' 'paterson' 'arrhenius'}),178 if ~ismember({md.rheology_law},{'None' 'Paterson' 'Arrhenius'}), 179 179 message(['model not consistent: model ' md.name ' rheology_law field should be ''none'' ''paterson'' or ''arrhenius''']); 180 180 end
Note:
See TracChangeset
for help on using the changeset viewer.