numerics/src/GenericMechanical/GenericMechanicalProblem.c
/** return nonsmooth problem formulation name, from its id number. */
return nonsmooth problem formulation name, from its id number.
return nonsmooth problem formulation name from its id number .
const char * ns_problem_id_to_name(enum SICONOS_NUMERICS_PROBLEM_TYPE id)
{
  switch(id)
  {
  case(SICONOS_NUMERICS_PROBLEM_LCP):
  {
    return "LCP";
  }
  case(SICONOS_NUMERICS_PROBLEM_MLCP):
  {
    return "MLCP";
  }
  case(SICONOS_NUMERICS_PROBLEM_NCP):
  {
    return "NCP";
  }
  case(SICONOS_NUMERICS_PROBLEM_MCP):
  {
    return "MCP";
  }
  case(SICONOS_NUMERICS_PROBLEM_EQUALITY):
  {
    return "EQUALITY";
  }
  case(SICONOS_NUMERICS_PROBLEM_FC2D):
  {
    return "FC2D";
  }
  case(SICONOS_NUMERICS_PROBLEM_FC3D):
  {
    return "FC3D";
  }
  case(SICONOS_NUMERICS_PROBLEM_VI):
  {
    return "VI";
  }
  case(SICONOS_NUMERICS_PROBLEM_AVI):
  {
    return "AVI";
  }
  case(SICONOS_NUMERICS_PROBLEM_RELAY):
  {
    return "RELAY";
  }
  default:
    printf("Numerics:ns_problem_id_to_name, id unknown : %d \n", id);
    return NULL;
  }
}
const char * ns_problem_id_to_name ( enum SICONOS_NUMERICS_PROBLEM_TYPE id ) { switch ( id ) { case ( SICONOS_NUMERICS_PROBLEM_LCP ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_MLCP ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_NCP ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_MCP ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_EQUALITY ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_FC2D ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_FC3D ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_VI ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_AVI ) : { return " " ; } case ( SICONOS_NUMERICS_PROBLEM_RELAY ) : { return " " ; } default : printf ( " \n " , id ) ; return NULL ; } }
return nonsmooth problem formulation name, from its id number.
return nonsmooth problem formulation name from its id number .