src/parser/Debug_Options.cc
string debug_options_as_text(unsigned debug_options) {
  string Result;

  if (debug_options & DEBUG_SUMMARY) {
    Result += ", SUMMARY";
  }
  if (debug_options & DEBUG_BALANCE) {
    Result += ", BALANCE";
  }
  if (debug_options & DEBUG_TIMESTEP) {
    Result += ", TIMESTEP";
  }
  if (debug_options & DEBUG_TIMING) {
    Result += ", TIMING";
  }
  if (debug_options & DEBUG_ALGORITHM) {
    Result += ", ALGORITHM";
  }
  if (debug_options & DEBUG_MEMORY) {
    Result += ", MEMORY";
  }
  if (debug_options & DEBUG_PROBLEM) {
    Result += ", PROBLEM";
  }
  if (debug_options & DEBUG_GMV_DUMP) {
    Result += ", GMV_DUMP";
  }
  if (debug_options & DEBUG_RESET_TIMING) {
    Result += ", RESET_TIMING";
  }
  // Mask out standard options and see if any extensions are active
  debug_options =
      debug_options & ~(DEBUG_SUMMARY | DEBUG_BALANCE | DEBUG_TIMESTEP | DEBUG_TIMING |
                        DEBUG_ALGORITHM | DEBUG_MEMORY | DEBUG_PROBLEM | DEBUG_RESET_TIMING);

  if (debug_options) {
    for (const auto &i : extended_debug_option) {
      if (debug_options & i.second) {
        Result += ", " + i.first;
      }
    }
  }

  return Result;
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Convert a debug mask to a string containing comma-delimited set of
 *      debug keywords.
 *
 * \param[in] debug_options Debug mask to be converted to a set of keywords.
 * \return A string containing a comma-delimited set of debug options.
 */
\brief Convert a debug mask to a string containing comma-delimited set of
debug keywords.

\param[in] debug_options Debug mask to be converted to a set of keywords.
\return A string containing a comma-delimited set of debug options.
\ brief Convert a debug mask to a string containing comma - delimited set of debug keywords . \ param [ in ] debug_options Debug mask to be converted to a set of keywords . \ return A string containing a comma - delimited set of debug options .
string debug_options_as_text(unsigned debug_options) {
  string Result;
  if (debug_options & DEBUG_SUMMARY) {
    Result += ", SUMMARY";
  }
  if (debug_options & DEBUG_BALANCE) {
    Result += ", BALANCE";
  }
  if (debug_options & DEBUG_TIMESTEP) {
    Result += ", TIMESTEP";
  }
  if (debug_options & DEBUG_TIMING) {
    Result += ", TIMING";
  }
  if (debug_options & DEBUG_ALGORITHM) {
    Result += ", ALGORITHM";
  }
  if (debug_options & DEBUG_MEMORY) {
    Result += ", MEMORY";
  }
  if (debug_options & DEBUG_PROBLEM) {
    Result += ", PROBLEM";
  }
  if (debug_options & DEBUG_GMV_DUMP) {
    Result += ", GMV_DUMP";
  }
  if (debug_options & DEBUG_RESET_TIMING) {
    Result += ", RESET_TIMING";
  }
  debug_options =
      debug_options & ~(DEBUG_SUMMARY | DEBUG_BALANCE | DEBUG_TIMESTEP | DEBUG_TIMING |
                        DEBUG_ALGORITHM | DEBUG_MEMORY | DEBUG_PROBLEM | DEBUG_RESET_TIMING);
  if (debug_options) {
    for (const auto &i : extended_debug_option) {
      if (debug_options & i.second) {
        Result += ", " + i.first;
      }
    }
  }
  return Result;
}
string debug_options_as_text ( unsigned debug_options ) { string Result ; if ( debug_options & DEBUG_SUMMARY ) { Result += " " ; } if ( debug_options & DEBUG_BALANCE ) { Result += " " ; } if ( debug_options & DEBUG_TIMESTEP ) { Result += " " ; } if ( debug_options & DEBUG_TIMING ) { Result += " " ; } if ( debug_options & DEBUG_ALGORITHM ) { Result += " " ; } if ( debug_options & DEBUG_MEMORY ) { Result += " " ; } if ( debug_options & DEBUG_PROBLEM ) { Result += " " ; } if ( debug_options & DEBUG_GMV_DUMP ) { Result += " " ; } if ( debug_options & DEBUG_RESET_TIMING ) { Result += " " ; } debug_options = debug_options & ~ ( DEBUG_SUMMARY | DEBUG_BALANCE | DEBUG_TIMESTEP | DEBUG_TIMING | DEBUG_ALGORITHM | DEBUG_MEMORY | DEBUG_PROBLEM | DEBUG_RESET_TIMING ) ; if ( debug_options ) { for ( const auto & i : extended_debug_option ) { if ( debug_options & i . second ) { Result += " " + i . first ; } } } return Result ; }
\brief Convert a debug mask to a string containing comma-delimited set of
      debug keywords.
\ brief Convert a debug mask to a string containing comma - delimited set of debug keywords .
// Mask out standard options and see if any extensions are active