1 #ifndef CHECK_AIF_FLX_FORMAT_HPP 
    2 #define CHECK_AIF_FLX_FORMAT_HPP 
   15     std::ifstream file(filename);
 
   19         printf(
"\nError: %s not found", filename.c_str());
 
   20         exit_XGC(
"\nThe flx.aif file is required.\n");
 
   26     int n_entries_on_line_5 = 0;
 
   27     int n_entries_on_line_6 = 0;
 
   28     while (std::getline(file, line)){
 
   35             std::istringstream iss(line);
 
   38                 n_entries_on_line_5++;
 
   44             std::istringstream iss(line);
 
   47                 n_entries_on_line_6++;
 
   58     if(n_entries_on_line_5<=1 && n_entries_on_line_6<=1){
 
   60         printf(
"  Flux surface file %s identified as using the OLD format. Consider converting to the new format.\n", filename.c_str());
 
   64         printf(
"  Flux surface file %s identified as using the NEW format.\n", filename.c_str());
 
void exit_XGC(std::string msg)
Definition: globals.hpp:37