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
7471e5e9
Commit
7471e5e9
authored
9 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
Added CMake option OGS_EIGEN_DYNAMIC for using dyn. all. matrices.
parent
defb32b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+4
-0
4 additions, 0 deletions
CMakeLists.txt
NumLib/Fem/ShapeMatrixPolicy.h
+4
-1
4 additions, 1 deletion
NumLib/Fem/ShapeMatrixPolicy.h
with
8 additions
and
1 deletion
CMakeLists.txt
+
4
−
0
View file @
7471e5e9
...
...
@@ -73,6 +73,7 @@ option(OGS_USE_MPI "Use MPI" OFF)
# Eigen
option
(
OGS_USE_EIGEN
"Use EIGEN for local matrix and vector"
ON
)
option
(
OGS_EIGEN_DYNAMIC
"Use dynamically allocated shape matrices"
OFF
)
option
(
EIGEN_NO_DEBUG
"Disables Eigen's assertions"
OFF
)
# Logging
...
...
@@ -130,6 +131,9 @@ if(OGS_USE_EIGEN)
if
(
EIGEN_NO_DEBUG
)
add_definitions
(
-DEIGEN_NO_DEBUG
)
endif
()
if
(
OGS_EIGEN_DYNAMIC
)
add_definitions
(
-DEIGEN_DYNAMIC_MATRICES
)
endif
()
endif
()
######################
...
...
This diff is collapsed.
Click to expand it.
NumLib/Fem/ShapeMatrixPolicy.h
+
4
−
1
View file @
7471e5e9
...
...
@@ -107,8 +107,11 @@ struct EigenDynamicShapeMatrixPolicy
/// Default choice of the ShapeMatrixPolicy.
template
<
typename
ShapeFunction
,
unsigned
GlobalDim
>
#if EIGEN_DYNAMIC_MATRICES
using
ShapeMatrixPolicyType
=
EigenDynamicShapeMatrixPolicy
<
ShapeFunction
,
GlobalDim
>
;
#else
using
ShapeMatrixPolicyType
=
EigenFixedShapeMatrixPolicy
<
ShapeFunction
,
GlobalDim
>
;
//using ShapeMatrixPolicyType = EigenDynamicShapeMatrixPolicy<ShapeFunction, GlobalDim>;
#endif
#endif // OGS_USE_EIGEN
...
...
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