Back to index

salome-med  6.5.0
Functions
MED_RENUMBER Namespace Reference

Functions

Renumbering * RenumberingFactory (const string &s)

Function Documentation

RENUMBER_EXPORT Renumbering * MED_RENUMBER::RenumberingFactory ( const string &  s)

Definition at line 35 of file RenumberingFactory.cxx.

  {
#ifdef MED_ENABLE_METIS
#ifdef ENABLE_BOOST
    if (s=="METIS")
      {
        return new METISRenumbering;
      }
    else if(s=="BOOST")
      {
        return new BOOSTRenumbering;
      }
    else 
      {
        std::cerr << "The method has to be METIS or BOOST" << std::endl;
        return 0;
      }
#endif
#ifndef ENABLE_BOOST
    if (s=="METIS")
      {
        return new METISRenumbering;
      }
    else
      {
        std::cerr << "The method has to be METIS!" << std::endl;
        return 0;
      }
#endif
#endif
#ifndef MED_ENABLE_METIS
#ifdef ENABLE_BOOST
    if (s=="BOOST")
      {
        return new BOOSTRenumbering;
      }
    else
      {
        std::cerr << "The method has to be BOOST!" << std::endl;
        return 0;
      }
#endif
#ifndef ENABLE_BOOST
    std::cerr << "Error, no method compiled" << std::endl;
    return 0;
#endif
#endif
  }

Here is the caller graph for this function: