Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
54c317f8
Commit
54c317f8
authored
20 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
output solver errors+warnings in red, too
parent
cd14447e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/Message.h
+1
-0
1 addition, 0 deletions
Common/Message.h
Fltk/Message.cpp
+2
-1
2 additions, 1 deletion
Fltk/Message.cpp
Fltk/Solvers.cpp
+4
-2
4 additions, 2 deletions
Fltk/Solvers.cpp
with
7 additions
and
3 deletions
Common/Message.h
+
1
−
0
View file @
54c317f8
...
@@ -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 : "
...
...
This diff is collapsed.
Click to expand it.
Fltk/Message.cpp
+
2
−
1
View file @
54c317f8
// $Id: Message.cpp,v 1.5
0
2004-05-15
08:24:07
geuzaine Exp $
// $Id: Message.cpp,v 1.5
1
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
;
...
...
This diff is collapsed.
Click to expand it.
Fltk/Solvers.cpp
+
4
−
2
View file @
54c317f8
// $Id: Solvers.cpp,v 1.2
2
2004-05-15
08:07:20
geuzaine Exp $
// $Id: Solvers.cpp,v 1.2
3
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
(
SOLVER
R
,
"%-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"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment