Changeset 2351
- Timestamp:
- 09/29/09 11:32:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/dakota/dakota_out_parse.m
r2188 r2351 375 375 376 376 while ~isempty(fline) 377 if fline==-1,378 break379 end380 377 [ntokens,tokens]=fltokens(fline); 381 378 … … 406 403 while ~isempty(fline) && ... 407 404 ~strncmpi(fline,'Cumulative Distribution Function',32) 408 if fline==-1, 409 break 410 end 411 [ntokens,tokens]=fltokens(fline); 405 [ntokens,tokens]=fltokens(fline); 412 406 icdf=icdf+1; 413 dresp(idresp).cdf(icdf,1 )=tokens{1}{ 1};414 dresp(idresp).cdf(icdf,2)=tokens{1}{ 2}; 415 i f (ntokens == 4)416 dresp(idresp).cdf(icdf,3)=tokens{1}{ 3};417 dresp(idresp).cdf(icdf,4)=tokens{1}{ 4};418 else419 dresp(idresp).cdf(icdf,3)=NaN;420 dresp(idresp).cdf(icdf,4)=NaN;421 end 407 dresp(idresp).cdf(icdf,1:4)=NaN; 408 % in later versions of Dakota, uncalculated columns are now blank 409 itoken=0; 410 for i=1:length(fline)/19 411 if ~isempty(deblank(fline((i-1)*19+1:i*19))) 412 itoken=itoken+1; 413 dresp(idresp).cdf(icdf,i)=tokens{1}{itoken}; 414 end 415 end; 422 416 fline=fgetl(fidi); 423 417 end
Note:
See TracChangeset
for help on using the changeset viewer.