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
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
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
ogs
ogs
Commits
00c7c7ef
Commit
00c7c7ef
authored
10 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[CLI] Added PETSc vector, matrix and solver specifications in NumericsConfig.
parent
5db7d474
No related branches found
No related tags found
1 merge request
!580
Parallelization of the FEM by using PETSc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessLib/NumericsConfig.h
+14
-2
14 additions, 2 deletions
ProcessLib/NumericsConfig.h
with
14 additions
and
2 deletions
ProcessLib/NumericsConfig.h
+
14
−
2
View file @
00c7c7ef
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
//
//
// Global vector/matrix types and linear solver.
// Global vector/matrix types and linear solver.
//
//
#ifdef
USE_LIS
#if
def
ined(
USE_LIS
)
#include
"MathLib/LinAlg/Lis/LisMatrix.h"
#include
"MathLib/LinAlg/Lis/LisMatrix.h"
#include
"MathLib/LinAlg/Lis/LisVector.h"
#include
"MathLib/LinAlg/Lis/LisVector.h"
...
@@ -37,7 +37,19 @@ namespace detail
...
@@ -37,7 +37,19 @@ namespace detail
using
LinearSolverType
=
MathLib
::
LisLinearSolver
;
using
LinearSolverType
=
MathLib
::
LisLinearSolver
;
}
}
#else // USE_LIS
#elif defined(USE_PETSC)
#include
"MathLib/LinAlg/PETSc/PETScVector.h"
#include
"MathLib/LinAlg/PETSc/PETScMatrix.h"
#include
"MathLib/LinAlg/PETSc/PETScLinearSolver.h"
namespace
detail
{
using
GlobalVectorType
=
MathLib
::
PETScVector
;
using
GlobalMatrixType
=
MathLib
::
PETScMatrix
;
using
LinearSolverType
=
MathLib
::
PETScLinearSolver
;
}
#else
#ifdef OGS_USE_EIGEN
#ifdef OGS_USE_EIGEN
#include
"MathLib/LinAlg/Eigen/EigenVector.h"
#include
"MathLib/LinAlg/Eigen/EigenVector.h"
#include
"MathLib/LinAlg/Eigen/EigenMatrix.h"
#include
"MathLib/LinAlg/Eigen/EigenMatrix.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