Changeset 22710


Ignore:
Timestamp:
04/25/18 18:30:46 (7 years ago)
Author:
schlegel
Message:

CHG: update dakota parse to remove warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/qmu/dakota_out_parse.m

    r21662 r22710  
    7979        %%  loop through the file to find the Dakota method name
    8080
    81         [fline]=findline(fidi,'methodName = ');
     81        [fline]=findline(fidi,'method');
    8282        if ~ischar(fline)
    8383                %do nothing
    8484        else
    8585                % display(['  ' deblank(fline)]);
    86 
    8786                [ntokens,tokens]=fltokens(fline);
    88                 method=tokens{1}{3};
    89                 display(sprintf('Dakota methodName=''%s''.',method));
     87                %dakota version >6
     88                if strcmp(tokens{1}{1}(7),',')
     89                        fline=fgetl(fidi);
     90                        [ntokens,tokens]=fltokens(fline);
     91                        method=tokens{1}{1};
     92                        display(sprintf('Dakota method =''%s''.',method));
     93                elseif strcmp(tokens{1}{1}(7),'N')
     94                        [fline]=findline(fidi,'methodName = ');
     95                        [ntokens,tokens]=fltokens(fline);
     96                        method=tokens{1}{3};
     97                        display(sprintf('Dakota methodName=''%s''.',method));
     98                end
    9099        end
    91100
     
    141150                        [method]=itcomp_read(fidi,fline);
    142151                elseif strncmp(fline,'-----',5)
     152                elseif strncmp(fline,'<<<<< Environment execution completed',37)
     153                        break;
    143154                else
    144155                        display(['Unexpected line: ' deblank(fline)]);
Note: See TracChangeset for help on using the changeset viewer.