Changeset 6247


Ignore:
Timestamp:
10/12/10 10:35:57 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/tres.m

    r6130 r6247  
    4040        end
    4141        if md.control_analysis==1,
    42                 if (md.control_type==DragCoefficientEnum)
    43                         md.drag_coefficient=PatchToVec(md.results.DiagnosticSolution.(md.results.DiagnosticSolution.ControlType));
    44                 elseif (md.control_type==RheologyBbarEnum)
    45                         md.rheology_B=PatchToVec(md.results.DiagnosticSolution.(md.results.DiagnosticSolution.ControlType));
    46                 elseif (md.control_type==DhDtEnum)
    47                         md.dhdt=PatchToVec(md.results.DiagnosticSolution.(md.results.DiagnosticSolution.ControlType));
    48                 else
    49                         error('control type not implemented yet')
     42                for control_type=md.control_type
     43                        md.(EnumToModelField(control_type))=PatchToVec(md.results.DiagnosticSolution.(md.results.DiagnosticSolution.(control_type)));
    5044                end
    5145        end
Note: See TracChangeset for help on using the changeset viewer.