Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Podhorszki, Norbert
ADIOS2
Commits
572da9b8
Commit
572da9b8
authored
Mar 03, 2020
by
Nick
Browse files
Fix non-mpi build.
parent
679798eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
testing/adios2/engine/bp/TestBPNoXMLRecovery.cpp
View file @
572da9b8
...
...
@@ -2,8 +2,9 @@
#include
<vector>
#include
<adios2.h>
#ifdef ADIOS2_HAVE_MPI
#include
<mpi.h>
#endif
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -17,7 +18,12 @@ int main(int argc, char *argv[])
adios2
::
ADIOS
ad
;
try
{
ad
=
adios2
::
ADIOS
(
"does_not_exist.xml"
,
MPI_COMM_WORLD
,
adios2
::
DebugON
);
#ifdef ADIOS2_HAVE_MPI
ad
=
adios2
::
ADIOS
(
"does_not_exist.xml"
,
MPI_COMM_WORLD
,
adios2
::
DebugON
);
#else
ad
=
adios2
::
ADIOS
(
"does_not_exist.xml"
,
adios2
::
DebugON
);
#endif
}
catch
(
std
::
exception
&
e
)
{
...
...
@@ -25,7 +31,11 @@ int main(int argc, char *argv[])
{
std
::
cout
<<
e
.
what
()
<<
"
\n
"
;
}
#ifdef ADIOS2_HAVE_MPI
ad
=
adios2
::
ADIOS
(
MPI_COMM_WORLD
,
adios2
::
DebugON
);
#else
ad
=
adios2
::
ADIOS
(
adios2
::
DebugON
);
#endif
}
#ifdef ADIOS2_HAVE_MPI
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment