Changeset 25284


Ignore:
Timestamp:
07/15/20 20:20:55 (5 years ago)
Author:
Eric.Larour
Message:

CHG: acceleration of loadresultfromdisk if you know the positin already.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solve/loadresultfromdisk.m

    r25283 r25284  
    1 function variable=loadresultfromdisk(filename,step,name)
     1function [variable fpos]=loadresultfromdisk(filename,step,name,varargin)
    22%LOADRESULTFROMDISK - load specific result of solution sequence from disk file "filename"           
    33%
     
    1111        end
    1212
     13        if nargin==4,
     14                fpos=varargin{1};
     15                fseek(fid,fpos,'bof');
     16        end
     17
    1318        %Put the pointer on the right position in the file:
    1419        while 1,
    1520
    1621                %read field
     22                fpos=ftell(fid);
    1723                [length,count]=fread(fid,1,'int');
    1824
Note: See TracChangeset for help on using the changeset viewer.