Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Nektar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
87
Issues
87
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
44
Merge Requests
44
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nektar
Nektar
Commits
f3f69939
Commit
f3f69939
authored
May 27, 2016
by
Chris Cantwell
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated CHANGELOG. Add code comments, tidy code.
parent
bcff0ce9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
CHANGELOG.md
CHANGELOG.md
+2
-0
library/LibUtilities/BasicUtils/ErrorUtil.hpp
library/LibUtilities/BasicUtils/ErrorUtil.hpp
+9
-9
No files found.
CHANGELOG.md
View file @
f3f69939
...
@@ -10,6 +10,8 @@ v4.3.2
...
@@ -10,6 +10,8 @@ v4.3.2
-
Print error message for invalid equation also in release version (!634)
-
Print error message for invalid equation also in release version (!634)
-
HistoryPoints filter now uses closest plane to requested z-coordinate and
-
HistoryPoints filter now uses closest plane to requested z-coordinate and
output is produced in physical space (!621).
output is produced in physical space (!621).
-
Fix bug in iterative solver where only root process would ASSERT when
exceeding the maximum number of iterations (!636)
**FieldConvert**
:
**FieldConvert**
:
-
Fix appearence of duplicate messages when running in parallel (!626)
-
Fix appearence of duplicate messages when running in parallel (!626)
...
...
library/LibUtilities/BasicUtils/ErrorUtil.hpp
View file @
f3f69939
...
@@ -77,7 +77,6 @@ namespace ErrorUtil
...
@@ -77,7 +77,6 @@ namespace ErrorUtil
inline
static
void
Error
(
ErrType
type
,
const
char
*
routine
,
int
lineNumber
,
const
char
*
msg
,
unsigned
int
level
)
inline
static
void
Error
(
ErrType
type
,
const
char
*
routine
,
int
lineNumber
,
const
char
*
msg
,
unsigned
int
level
)
{
{
int
rank
=
0
;
// The user of outStream is primarily for the unit tests.
// The user of outStream is primarily for the unit tests.
// The unit tests often generate errors on purpose to make sure
// The unit tests often generate errors on purpose to make sure
// invalid usage is flagged appropriately. Printing the error
// invalid usage is flagged appropriately. Printing the error
...
@@ -91,6 +90,9 @@ namespace ErrorUtil
...
@@ -91,6 +90,9 @@ namespace ErrorUtil
#endif
#endif
msg
;
msg
;
// Default rank is zero. If MPI used and initialised, populate with
// the correct rank. Messages are only printed on rank zero.
int
rank
=
0
;
#if defined(NEKTAR_USE_MPI)
#if defined(NEKTAR_USE_MPI)
int
flag
;
int
flag
;
MPI_Initialized
(
&
flag
);
MPI_Initialized
(
&
flag
);
...
@@ -99,7 +101,7 @@ namespace ErrorUtil
...
@@ -99,7 +101,7 @@ namespace ErrorUtil
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
rank
);
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
rank
);
}
}
#endif
#endif
std
::
string
btMessage
(
""
);
std
::
string
btMessage
(
""
);
#if defined(NEKTAR_FULLDEBUG)
#if defined(NEKTAR_FULLDEBUG)
#ifndef _WIN32
#ifndef _WIN32
...
@@ -118,12 +120,12 @@ namespace ErrorUtil
...
@@ -118,12 +120,12 @@ namespace ErrorUtil
#endif
#endif
#endif
#endif
switch
(
type
)
switch
(
type
)
{
{
case
efatal
:
case
efatal
:
if
(
!
rank
)
if
(
!
rank
)
{
{
if
(
outStream
)
if
(
outStream
)
{
{
(
*
outStream
)
<<
btMessage
;
(
*
outStream
)
<<
btMessage
;
(
*
outStream
)
<<
"Fatal : "
<<
baseMsg
<<
std
::
endl
;
(
*
outStream
)
<<
"Fatal : "
<<
baseMsg
<<
std
::
endl
;
...
@@ -135,13 +137,12 @@ namespace ErrorUtil
...
@@ -135,13 +137,12 @@ namespace ErrorUtil
<<
std
::
endl
;
<<
std
::
endl
;
}
}
}
}
throw
NekError
(
baseMsg
);
throw
NekError
(
baseMsg
);
break
;
break
;
case
ewarning
:
case
ewarning
:
if
(
!
rank
)
if
(
!
rank
)
{
{
if
(
outStream
)
if
(
outStream
)
{
{
(
*
outStream
)
<<
btMessage
;
(
*
outStream
)
<<
btMessage
;
(
*
outStream
)
<<
"Warning: "
<<
baseMsg
<<
std
::
endl
;
(
*
outStream
)
<<
"Warning: "
<<
baseMsg
<<
std
::
endl
;
...
@@ -153,7 +154,6 @@ namespace ErrorUtil
...
@@ -153,7 +154,6 @@ namespace ErrorUtil
}
}
}
}
break
;
break
;
default:
default:
std
::
cerr
<<
"Unknown warning type: "
<<
baseMsg
<<
std
::
endl
;
std
::
cerr
<<
"Unknown warning type: "
<<
baseMsg
<<
std
::
endl
;
}
}
...
...
Chris Cantwell
@ccantwel
mentioned in commit
1496fb67
·
Jun 02, 2016
mentioned in commit
1496fb67
mentioned in commit 1496fb67a85f35004d31ffb485e4675c428032ca
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment