src/mesh/mesh.cpp
//----------------------------------------------------------------------------------------
//! \fn void Mesh::EnrollUserHistoryOutput(int i, HistoryOutputFunc_t my_func,
//                                         const char *name)
//  \brief Enroll a user-defined history output function and set its name
\fn void Mesh::EnrollUserHistoryOutput(int i, HistoryOutputFunc_t my_func,
const char *name)
\brief Enroll a user-defined history output function and set its name
\ fn void Mesh :: EnrollUserHistoryOutput ( int i HistoryOutputFunc_t my_func const char * name ) \ brief Enroll a user - defined history output function and set its name
void Mesh::EnrollUserHistoryOutput(int i, HistoryOutputFunc_t my_func, const char *name)
{
  std::stringstream msg;
  if(i>=nuser_history_output_) {
    msg << "### FATAL ERROR in EnrollUserHistoryOutput function" << std::endl
        << "The number of the user-defined history output (" << i << ") "
        << "exceeds the declared number (" << nuser_history_output_ << ")." << std::endl;
    throw std::runtime_error(msg.str().c_str());
  }
  user_history_output_names_[i] = name;
  user_history_func_[i] = my_func;
}
void Mesh :: EnrollUserHistoryOutput ( int i , HistoryOutputFunc_t my_func , const char * name ) { std :: stringstream msg ; if ( i >= nuser_history_output_ ) { msg << " " << std :: endl << " " << i << " " << " " << nuser_history_output_ << " " << std :: endl ; throw std :: runtime_error ( msg . str ( ) . c_str ( ) ) ; } user_history_output_names_ [ i ] = name ; user_history_func_ [ i ] = my_func ; }
\fn void Mesh::EnrollUserHistoryOutput(int i, HistoryOutputFunc_t my_func,
const char *name)
\brief Enroll a user-defined history output function and set its name
\ fn void Mesh :: EnrollUserHistoryOutput ( int i HistoryOutputFunc_t my_func const char * name ) \ brief Enroll a user - defined history output function and set its name