Changeset 6736


Ignore:
Timestamp:
12/16/10 17:10:04 (14 years ago)
Author:
Eric.Larour
Message:

New parseresults routine when we are using split io on the cluster.

Location:
issm/trunk/src/m/model
Files:
3 added
4 edited

Legend:

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

    r6287 r6736  
    8282
    8383        %Interpolation of data on specified points
    84         data_interp=InterpFromMeshToMesh2d(md.elements,md.x,md.y,data,X,Y);
    85         %data_interp=griddata(md.x,md.y,data,X,Y);
     84        %data_interp=InterpFromMeshToMesh2d(md.elements,md.x,md.y,data,X,Y);
     85        data_interp=griddata(md.x,md.y,data,X,Y);
    8686
    8787        %Compute index
  • issm/trunk/src/m/model/loadresultsfromdisk.m

    r5756 r6736  
    1919
    2020        %load results onto model
    21         structure=parseresultsfromdisk(filename);
     21        structure=parseresultsfromdisk(filename,~md.io_gather);
    2222        md.results.(structure.SolutionType)=structure;
    2323
  • issm/trunk/src/m/model/parseresultsfromdisk.m

    r6440 r6736  
    1 function results=parseresultsfromdisk(filename)
     1function results=parseresultsfromdisk(filename,iosplit)
    22%PARSERESULTSFROMDISK - ...
    33%
    44%   Usage:
    5 %      results=parseresultsfromdisk(filename)
     5%      results=parseresultsfromdisk(filename,iosplit)
    66
    7 %Open file
    8 fid=fopen(filename,'rb');
    9 if(fid==-1),
    10         error(['loadresultsfromdisk error message: could not open ',filename,' for binary reading']);
    11 end
    12 results=struct();
    137
    14 %Read fields until the end of the file.
    15 result=ReadData(fid);
    16 while ~isempty(result),
    178
    18         %Get time and step
    19         results(result.step).step=result.step;
    20         results(result.step).time=result.time;
    21 
    22         %Add result
    23         if (length(results)>=result.step & isfield(results,result.fieldname) & ~strcmp(result.fieldname,'SolutionType')),
    24                 results(result.step).(result.fieldname)=[ results(result.step).(result.fieldname); result.field];
    25         else
    26                 results(result.step).(result.fieldname)=result.field;
    27         end
    28 
    29         %read next result
    30         result=ReadData(fid);
    31 
     9if iosplit,
     10        results=parseresultsfromdiskiosplit(filename);
     11else
     12        results=parseresultsfromdiskioserial(filename);
    3213end
    3314
     
    3617
    3718fclose(fid);
     19end
  • issm/trunk/src/m/model/tres.m

    r6364 r6736  
    7474        md.temperature=PatchToVec(md.results.SteadystateSolution.Temperature);
    7575        md.melting_rate=PatchToVec(md.results.SteadystateSolution.MeltingRate);
     76       
     77        if md.control_analysis==1,
     78                if control_type==md.control_type
     79                        md.(EnumToModelField(control_type))=PatchToVec(md.results.DiagnosticSolution.(EnumToString(control_type)));
     80                end
     81        end
     82
    7683elseif strcmpi(string,'thermal'),
    7784        md.temperature=PatchToVec(md.results.ThermalSolution.Temperature);
Note: See TracChangeset for help on using the changeset viewer.