Changeset 22710
- Timestamp:
- 04/25/18 18:30:46 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/qmu/dakota_out_parse.m
r21662 r22710 79 79 %% loop through the file to find the Dakota method name 80 80 81 [fline]=findline(fidi,'method Name =');81 [fline]=findline(fidi,'method'); 82 82 if ~ischar(fline) 83 83 %do nothing 84 84 else 85 85 % display([' ' deblank(fline)]); 86 87 86 [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 90 99 end 91 100 … … 141 150 [method]=itcomp_read(fidi,fline); 142 151 elseif strncmp(fline,'-----',5) 152 elseif strncmp(fline,'<<<<< Environment execution completed',37) 153 break; 143 154 else 144 155 display(['Unexpected line: ' deblank(fline)]);
Note:
See TracChangeset
for help on using the changeset viewer.