Skip to content
Snippets Groups Projects
Commit 54c317f8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

output solver errors+warnings in red, too
parent cd14447e
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
#define DIRECT 30 // Direct message (no special formatting) #define DIRECT 30 // Direct message (no special formatting)
#define SOLVER 31 // Solver message #define SOLVER 31 // Solver message
#define SOLVERR 32 // Solver errors and warnings
#define WHITE_STR " : " #define WHITE_STR " : "
#define FATAL_STR "Fatal : " #define FATAL_STR "Fatal : "
......
// $Id: Message.cpp,v 1.50 2004-05-15 08:24:07 geuzaine Exp $ // $Id: Message.cpp,v 1.51 2004-05-15 15:32:32 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -82,6 +82,7 @@ void Msg(int level, char *fmt, ...) ...@@ -82,6 +82,7 @@ void Msg(int level, char *fmt, ...)
switch(level){ switch(level){
case DIRECT : color = 5; verb = 2; break ; case DIRECT : color = 5; verb = 2; break ;
case SOLVER : color = 4; verb = 3; break ; case SOLVER : color = 4; verb = 3; break ;
case SOLVERR : color = 1; verb = 3; break ;
case STATUS1N : log = 0; //fallthrough case STATUS1N : log = 0; //fallthrough
case STATUS1 : str = INFO_STR; verb = 1; window = 0; break ; case STATUS1 : str = INFO_STR; verb = 1; window = 0; break ;
......
// $Id: Solvers.cpp,v 1.22 2004-05-15 08:07:20 geuzaine Exp $ // $Id: Solvers.cpp,v 1.23 2004-05-15 15:32:32 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -123,9 +123,11 @@ int Solver(int num, char *args) ...@@ -123,9 +123,11 @@ int Solver(int num, char *args)
} }
break; break;
case GMSH_CLIENT_INFO: case GMSH_CLIENT_INFO:
Msg(SOLVER, "%-7s : %s", SINFO[num].name, str);
break;
case GMSH_CLIENT_WARNING: case GMSH_CLIENT_WARNING:
case GMSH_CLIENT_ERROR: case GMSH_CLIENT_ERROR:
Msg(SOLVER, "%-7s : %s", SINFO[num].name, str); Msg(SOLVERR, "%-7s : %s", SINFO[num].name, str);
break; break;
default: default:
Msg(WARNING, "Unknown type of message received from %s", Msg(WARNING, "Unknown type of message received from %s",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment