Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
third-party
moab
Commits
cb3a508d
Commit
cb3a508d
authored
Sep 27, 2016
by
Iulian Grindeanu
Committed by
vijaysm
Oct 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not redefine assert
use assert.h
parent
bba39188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/parallel/WriteHDF5Parallel.cpp
src/parallel/WriteHDF5Parallel.cpp
+11
-4
No files found.
src/parallel/WriteHDF5Parallel.cpp
View file @
cb3a508d
...
...
@@ -118,6 +118,13 @@ const char* mpi_err_str(int errorcode) {
#ifdef VALGRIND
#include <valgrind/memcheck.h>
template
<
typename
T
>
inline
void
VALGRIND_MAKE_VEC_UNDEFINED
(
std
::
vector
<
T
>&
v
)
{
if
(
v
.
size
())
{}
(
void
)
VALGRIND_MAKE_MEM_UNDEFINED
(
&
v
[
0
],
v
.
size
()
*
sizeof
(
T
));
}
#else
#ifndef VALGRIND_CHECK_MEM_IS_DEFINED
#define VALGRIND_CHECK_MEM_IS_DEFINED(a, b) ((void)0)
...
...
@@ -128,14 +135,14 @@ const char* mpi_err_str(int errorcode) {
#ifndef VALGRIND_MAKE_MEM_UNDEFINED
#define VALGRIND_MAKE_MEM_UNDEFINED(a, b) ((void)0)
#endif
#endif
template
<
typename
T
>
inline
void
VALGRIND_MAKE_VEC_UNDEFINED
(
std
::
vector
<
T
>&
v
)
{
if
(
v
.
size
())
{}
(
void
)
VALGRIND_MAKE_MEM_UNDEFINED
(
&
v
[
0
],
v
.
size
()
*
sizeof
(
T
));
void
VALGRIND_MAKE_VEC_UNDEFINED
(
std
::
vector
<
T
>&
)
{
/* Nothing to do */
}
#endif
#ifndef NDEBUG
#define START_SERIAL \
for (unsigned _x = 0; _x < myPcomm->proc_config().proc_size(); ++_x) { \
...
...
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