-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpiwrap: provide serial ADIOS constructors even when compiled with mpi
and add a simple test
- Loading branch information
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
#include <adios2.h> | ||
|
||
#include <gtest/gtest.h> | ||
|
||
/** | ||
* Basic test to see that writing and reading a simple BP3 file works without | ||
* initializing MPI | ||
*/ | ||
TEST(ADIOSInterface, ADIOSNoMpi) | ||
{ | ||
adios2::ADIOS adios(adios2::DebugON); | ||
{ | ||
adios2::IO io = adios.DeclareIO("TestIOWrite"); | ||
adios2::Engine engine = io.Open("test.bp", adios2::Mode::Write); | ||
engine.Close(); | ||
} | ||
{ | ||
adios2::IO io = adios.DeclareIO("TestIORead"); | ||
adios2::Engine engine = io.Open("test.bp", adios2::Mode::Read); | ||
engine.Close(); | ||
} | ||
} | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
::testing::InitGoogleTest(&argc, argv); | ||
return RUN_ALL_TESTS(); | ||
} |