Skip to content
Snippets Groups Projects
Commit f12879a6 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[AppL] Move out includes from AppLib ns.

parent 7a52895c
No related branches found
No related tags found
No related merge requests found
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
#ifndef APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_ #ifndef APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_
#define APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_ #define APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_
namespace ApplicationsLib
{
/// The LinearSolverLibrarySetup takes care of proper initialization and /// The LinearSolverLibrarySetup takes care of proper initialization and
/// shutting down of an external linear solver library. The concrete /// shutting down of an external linear solver library. The concrete
/// implementation is chosen by the build system. /// implementation is chosen by the build system.
...@@ -25,6 +22,8 @@ namespace ApplicationsLib ...@@ -25,6 +22,8 @@ namespace ApplicationsLib
#if defined(USE_PETSC) #if defined(USE_PETSC)
#include <petsc.h> #include <petsc.h>
#include <mpi.h> #include <mpi.h>
namespace ApplicationsLib
{
struct LinearSolverLibrarySetup final struct LinearSolverLibrarySetup final
{ {
LinearSolverLibrarySetup(int argc, char* argv[]) LinearSolverLibrarySetup(int argc, char* argv[])
...@@ -40,8 +39,11 @@ struct LinearSolverLibrarySetup final ...@@ -40,8 +39,11 @@ struct LinearSolverLibrarySetup final
MPI_Finalize(); MPI_Finalize();
} }
}; };
} // ApplicationsLib
#elif defined(USE_LIS) #elif defined(USE_LIS)
#include <lis.h> #include <lis.h>
namespace ApplicationsLib
{
struct LinearSolverLibrarySetup final struct LinearSolverLibrarySetup final
{ {
LinearSolverLibrarySetup(int argc, char* argv[]) LinearSolverLibrarySetup(int argc, char* argv[])
...@@ -51,14 +53,17 @@ struct LinearSolverLibrarySetup final ...@@ -51,14 +53,17 @@ struct LinearSolverLibrarySetup final
~LinearSolverLibrarySetup() { lis_finalize(); } ~LinearSolverLibrarySetup() { lis_finalize(); }
}; };
} // ApplicationsLib
#else #else
namespace ApplicationsLib
{
struct LinearSolverLibrarySetup final struct LinearSolverLibrarySetup final
{ {
LinearSolverLibrarySetup(int /*argc*/, char* /*argv*/[]) {} LinearSolverLibrarySetup(int /*argc*/, char* /*argv*/[]) {}
~LinearSolverLibrarySetup() {} ~LinearSolverLibrarySetup() {}
}; };
} // ApplicationsLib
#endif #endif
} // ApplicationsLib
#endif // APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_ #endif // APPLICATIONSLIB_LINEARSOLVERLIBRARYSETUP_H_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment