Changeset 9610 for issm/trunk/src/m/classes/model/model.m
- Timestamp:
- 09/06/11 11:11:00 (14 years ago)
- File:
-
- 1 edited
-
issm/trunk/src/m/classes/model/model.m (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/model/model.m
r9607 r9610 16 16 flaim = modelfield('default',0,'marshall',false); 17 17 surfaceforcings = modelfield('default',0,'marshall',true); 18 friction = modelfield('default',0,'marshall',true); 18 19 19 20 %FIXME: all other fields should belong to other classes … … 119 120 %Physical parameters 120 121 121 drag_coefficient = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1);122 drag_p = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',2);123 drag_q = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',2);124 122 rheology_B = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1); 125 123 rheology_n = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',2); … … 408 406 409 407 %Field name change 410 if isfield(structmd,'drag'), md. drag_coefficient=structmd.drag; end411 if isfield(structmd,'p'), md. drag_p=structmd.p; end412 if isfield(structmd,'q'), md. drag_q=structmd.p; end408 if isfield(structmd,'drag'), md.friction.coefficient=structmd.drag; end 409 if isfield(structmd,'p'), md.friction.p=structmd.p; end 410 if isfield(structmd,'q'), md.friction.q=structmd.p; end 413 411 if isfield(structmd,'B'), md.rheology_B=structmd.B; end 414 412 if isfield(structmd,'n'), md.rheology_n=structmd.n; end … … 438 436 if isfield(structmd,'dakota_analysis'), md.dakota_analysis=structmd.dakota_analysis; end 439 437 if isfield(structmd,'surface_mass_balance'), md.surfaceforcings.mass_balance=structmd.surface_mass_balance; end 438 if isfield(structmd,'drag_coefficient'), md.friction.coefficient=structmd.drag_coefficient; end 439 if isfield(structmd,'drag_p'), md.friction.p=structmd.drag_p; end 440 if isfield(structmd,'drag_q'), md.friction.q=structmd.drag_q; end 440 441 441 442 %Field changes … … 489 490 end 490 491 if isnumeric(md.control_type), 491 if (structmd.control_type==143), md.control_type={' DragCoefficient'}; end492 if (structmd.control_type==143), md.control_type={'FrictionCoefficient'}; end 492 493 if (structmd.control_type==190), md.control_type={'RheologyBbar'}; end 493 494 if (structmd.control_type==147), md.control_type={'Dhdt'}; end … … 545 546 md.flaim=flaim; 546 547 md.surfaceforcings=surfaceforcings; 548 md.friction=friction; 547 549 548 550 %Materials parameters … … 674 676 %parameter to be inferred by control methods (only 675 677 %drag and B are supported yet) 676 md.control_type={' DragCoefficient'};678 md.control_type={'FrictionCoefficient'}; 677 679 678 680 %number of steps in the control methods
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)