Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-elasticity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Nebel, Lisa Julia
dune-elasticity
Commits
d474b99b
Commit
d474b99b
authored
2 years ago
by
Lisa Julia Nebel
Browse files
Options
Downloads
Patches
Plain Diff
Test to use a 1x1 matrix with the DuneFunctionsOperatorAssembler and PoweBases
parent
f750db35
No related branches found
No related tags found
No related merge requests found
Pipeline
#11203
failed
1 year ago
Stage: .pre
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/elasticity/common/trustregionsolver.cc
+6
-6
6 additions, 6 deletions
dune/elasticity/common/trustregionsolver.cc
dune/elasticity/common/trustregionsolver.hh
+3
-2
3 additions, 2 deletions
dune/elasticity/common/trustregionsolver.hh
with
9 additions
and
8 deletions
dune/elasticity/common/trustregionsolver.cc
+
6
−
6
View file @
d474b99b
...
@@ -121,7 +121,7 @@ setup(const typename BasisType::GridView::Grid& grid,
...
@@ -121,7 +121,7 @@ setup(const typename BasisType::GridView::Grid& grid,
// //////////////////////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////////////////////
MatrixType
localA
;
Scalar
MatrixType
localA
;
Dune
::
Fufem
::
DuneFunctionsOperatorAssembler
operatorAssembler
(
basis
,
basis
);
Dune
::
Fufem
::
DuneFunctionsOperatorAssembler
operatorAssembler
(
basis
,
basis
);
...
@@ -129,24 +129,24 @@ setup(const typename BasisType::GridView::Grid& grid,
...
@@ -129,24 +129,24 @@ setup(const typename BasisType::GridView::Grid& grid,
operatorAssembler
.
assembleBulk
(
Dune
::
Fufem
::
istlMatrixBackend
(
localA
),
laplaceStiffness
);
operatorAssembler
.
assembleBulk
(
Dune
::
Fufem
::
istlMatrixBackend
(
localA
),
laplaceStiffness
);
MatrixType
*
A
=
new
MatrixType
(
localA
);
Scalar
MatrixType
*
A
=
new
Scalar
MatrixType
(
localA
);
h1SemiNorm_
=
std
::
make_shared
<
EnergyNorm
<
MatrixType
,
CorrectionType
>
>
(
*
A
);
h1SemiNorm_
=
std
::
make_shared
<
EnergyNorm
<
Scalar
MatrixType
,
CorrectionType
>
>
(
*
A
);
// //////////////////////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////////////////////
// Assemble a mass matrix to create a norm that's equivalent to the L2-norm
// Assemble a mass matrix to create a norm that's equivalent to the L2-norm
// This will be used to monitor the gradient
// This will be used to monitor the gradient
// //////////////////////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////////////////////
MatrixType
localMassMatrix
;
Scalar
MatrixType
localMassMatrix
;
Dune
::
Fufem
::
MassAssembler
massStiffness
;
Dune
::
Fufem
::
MassAssembler
massStiffness
;
operatorAssembler
.
assembleBulk
(
Dune
::
Fufem
::
istlMatrixBackend
(
localMassMatrix
),
massStiffness
);
operatorAssembler
.
assembleBulk
(
Dune
::
Fufem
::
istlMatrixBackend
(
localMassMatrix
),
massStiffness
);
MatrixType
*
massMatrix
=
new
MatrixType
(
localMassMatrix
);
Scalar
MatrixType
*
massMatrix
=
new
Scalar
MatrixType
(
localMassMatrix
);
l2Norm_
=
std
::
make_shared
<
EnergyNorm
<
MatrixType
,
CorrectionType
>
>
(
*
massMatrix
);
l2Norm_
=
std
::
make_shared
<
EnergyNorm
<
Scalar
MatrixType
,
CorrectionType
>
>
(
*
massMatrix
);
// ////////////////////////////////////////////////////////////
// ////////////////////////////////////////////////////////////
// Create Hessian matrix and its occupation structure
// Create Hessian matrix and its occupation structure
...
...
This diff is collapsed.
Click to expand it.
dune/elasticity/common/trustregionsolver.hh
+
3
−
2
View file @
d474b99b
...
@@ -62,6 +62,7 @@ class TrustRegionSolver
...
@@ -62,6 +62,7 @@ class TrustRegionSolver
// Some types that I need
// Some types that I need
typedef
Dune
::
BCRSMatrix
<
Dune
::
FieldMatrix
<
field_type
,
blocksize
,
blocksize
>
>
MatrixType
;
typedef
Dune
::
BCRSMatrix
<
Dune
::
FieldMatrix
<
field_type
,
blocksize
,
blocksize
>
>
MatrixType
;
typedef
Dune
::
BCRSMatrix
<
Dune
::
FieldMatrix
<
field_type
,
1
,
1
>
>
ScalarMatrixType
;
typedef
Dune
::
BlockVector
<
Dune
::
FieldVector
<
field_type
,
blocksize
>
>
CorrectionType
;
typedef
Dune
::
BlockVector
<
Dune
::
FieldVector
<
field_type
,
blocksize
>
>
CorrectionType
;
typedef
VectorType
SolutionType
;
typedef
VectorType
SolutionType
;
...
@@ -164,10 +165,10 @@ protected:
...
@@ -164,10 +165,10 @@ protected:
std
::
shared_ptr
<
const
Dune
::
BitSetVector
<
blocksize
>
>
ignoreNodes_
;
std
::
shared_ptr
<
const
Dune
::
BitSetVector
<
blocksize
>
>
ignoreNodes_
;
/** \brief The norm used to measure multigrid convergence */
/** \brief The norm used to measure multigrid convergence */
std
::
shared_ptr
<
EnergyNorm
<
MatrixType
,
CorrectionType
>
>
h1SemiNorm_
;
std
::
shared_ptr
<
EnergyNorm
<
Scalar
MatrixType
,
CorrectionType
>
>
h1SemiNorm_
;
/** \brief An L2-norm, really. The H1SemiNorm class is badly named */
/** \brief An L2-norm, really. The H1SemiNorm class is badly named */
std
::
shared_ptr
<
EnergyNorm
<
MatrixType
,
CorrectionType
>
>
l2Norm_
;
std
::
shared_ptr
<
EnergyNorm
<
Scalar
MatrixType
,
CorrectionType
>
>
l2Norm_
;
};
};
...
...
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