Skip to content

Commit

Permalink
Include headers in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ampdes committed Jul 9, 2024
1 parent b8ebd93 commit 0040f9f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cpp/demo/checkpointing/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// # Checkpointing
//

#ifdef HAS_ADIOS2

#include <adios2.h>
#include <dolfinx.h>
#include <dolfinx/io/ADIOS2_utils.h>
#include <dolfinx/io/checkpointing.h>
#include <mpi.h>

using namespace dolfinx;
using namespace dolfinx::io::ADIOS2Engine;

int main(int argc, char* argv[])
{
Expand All @@ -23,7 +29,7 @@ int main(int argc, char* argv[])
MPI_COMM_WORLD, {{{0.0, 0.0}, {1.0, 1.0}}}, {4, 4},
mesh::CellType::quadrilateral, part));

auto writer = io::ADIOS2Engine(mesh->comm(), "mesh.bp", "mesh-write", "BP5",
auto writer = ADIOS2Engine(mesh->comm(), "mesh.bp", "mesh-write", "BP5",
adios2::Mode::Write);

// auto io = writer.io();
Expand All @@ -35,3 +41,6 @@ int main(int argc, char* argv[])
MPI_Finalize();
return 0;
}

#endif

0 comments on commit 0040f9f

Please sign in to comment.