Changeset 4240


Ignore:
Timestamp:
06/25/10 17:02:10 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added ProcessPatch.m to help read patches

Location:
issm/trunk/src/m/classes/public
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/parseresultsfromdisk.m

    r1591 r4240  
    1616while ~isempty(result),
    1717
     18        %Get time and step
    1819        results(result.step).step=result.step;
    1920        results(result.step).time=result.time;
    20         results(result.step).(result.fieldname)=result.field;
     21
     22        %process patch if necessary
     23        if strcmpi(result.fieldname,'Patch'),
     24                results=ProcessPatch(results,result.step,result.field);
     25        else
     26                results(result.step).(result.fieldname)=result.field;
     27        end
     28
     29        %read next result
    2130        result=ReadData(fid);
    2231
Note: See TracChangeset for help on using the changeset viewer.