Changeset 3218

Show
Ignore:
Timestamp:
12/13/11 12:30:06 (5 months ago)
Author:
erkn
Message:

fixed no absorption file bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/xlib/samples/PowderN.comp

    r3217 r3218  
    258258 
    259259    if (!ABS_file || !strlen(ABS_file) || !strcmp(ABS_file, "NULL")) { 
    260       fprintf(stderr,"Warning: material file (%s) not found, will proceed without absorption\n",ABS_file); 
     260      fprintf(stderr,"Warning: material file (%s) not found.\n",ABS_file); 
    261261      *abs=calloc(2,sizeof(struct abs_data)); 
    262262      (*abs)[1].E=-1; 
     
    634634  } 
    635635  if (!read_abs_data(material,&a_info)){ 
    636      
    637     exit(fprintf(stderr,"PowderN: %s Error reading absorption data from file %s\n",NAME_CURRENT_COMP,material)); 
     636    fprintf(stderr,"PowderN: %s Error reading absorption data from file %s - will proceed without absorption.\n",NAME_CURRENT_COMP,material); 
    638637  } 
    639638//  if (line_info.V_0) {