Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
f12879a6
Commit
f12879a6
authored
9 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[AppL] Move out includes from AppLib ns.
parent
7a52895c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Applications/ApplicationsLib/LinearSolverLibrarySetup.h
+9
-4
9 additions, 4 deletions
Applications/ApplicationsLib/LinearSolverLibrarySetup.h
with
9 additions
and
4 deletions
Applications/ApplicationsLib/LinearSolverLibrarySetup.h
+
9
−
4
View file @
f12879a6
...
@@ -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_
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment