Changeset 449


Ignore:
Timestamp:
05/15/09 14:14:51 (16 years ago)
Author:
jschierm
Message:

Minor modification to error handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/dakota/dakota_m_write.m

    r375 r449  
    238238    fprintf(fidm,'\tDakota.failure=1;\n');
    239239else
     240    fprintf(fidm,'\tif exist(''fid'',''var'')\n');
     241    fprintf(fidm,'\t\tstatus=fclose(fid);\n');
     242    fprintf(fidm,'\tend\n');
    240243    fprintf(fidm,'\tfid=fopen(outfile,''w'');\n');
    241244    fprintf(fidm,'\tfprintf(fid,''fail\\n'');\n');
Note: See TracChangeset for help on using the changeset viewer.