Skip to content
Snippets Groups Projects
Commit 37d7f94d authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Plug PETScWrapper into unit tests

parent 6b0d0f5c
Branches
Tags
1 merge request!64Feature/algebra coverage
......@@ -3,6 +3,7 @@
#include <Kokkos_Core.hpp>
#include <algebra/PETScWrapper.hpp>
#include <mesh/DiamondDualConnectivityManager.hpp>
#include <mesh/DiamondDualMeshManager.hpp>
#include <mesh/MeshDataManager.hpp>
......@@ -21,6 +22,8 @@ main(int argc, char* argv[])
parallel::Messenger::create(argc, argv);
Kokkos::initialize({4, -1, -1, true});
PETScWrapper::initialize(argc, argv);
const std::string output_base_name{"mpi_test_rank_"};
std::filesystem::path parallel_output(std::string{PUGS_BINARY_DIR});
......@@ -86,6 +89,8 @@ main(int argc, char* argv[])
}
}
PETScWrapper::finalize();
Kokkos::finalize();
parallel::Messenger::destroy();
......
......@@ -3,6 +3,7 @@
#include <Kokkos_Core.hpp>
#include <algebra/PETScWrapper.hpp>
#include <mesh/DiamondDualConnectivityManager.hpp>
#include <mesh/DiamondDualMeshManager.hpp>
#include <mesh/MeshDataManager.hpp>
......@@ -17,6 +18,8 @@ main(int argc, char* argv[])
parallel::Messenger::create(argc, argv);
Kokkos::initialize({4, -1, -1, true});
PETScWrapper::initialize(argc, argv);
Catch::Session session;
int result = session.applyCommandLine(argc, argv);
......@@ -46,6 +49,8 @@ main(int argc, char* argv[])
}
}
PETScWrapper::finalize();
Kokkos::finalize();
parallel::Messenger::destroy();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment