Ignore:
Timestamp:
May 31, 2011 4:53:55 AM (9 years ago)
Author:
fmargot
Message:

Fix bug in selection of strong branching when requesting non-full strong-branching; add END_OF_HEADER in output file fres.xxx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/main/BonCouenne.cpp

    r587 r588  
    304304#ifdef FM_FRES
    305305    if(cp != NULL) {
    306       FILE *f_res = fopen("fres.xxx", "a");
     306      FILE *f_res = NULL;
     307      f_res = fopen("fres.xxx", "r");
     308      if(f_res == NULL) {
     309        f_res = fopen("fres.xxx", "w");
     310        fprintf(f_res, "END_OF_HEADER\n");
     311      }
     312      else {
     313        fclose(f_res);
     314        f_res = fopen("fres.xxx", "a");
     315      }
    307316      char *pbName, shortName[256]; 
    308317     
Note: See TracChangeset for help on using the changeset viewer.