Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
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
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
podlesny
dune-tectonic
Commits
d2c8d1b6
Commit
d2c8d1b6
authored
11 years ago
by
Elias Pipping
Committed by
Elias Pipping
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Rename: MyConvexProblemType -> ConvexProblemType
parent
431163b5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/tectonic/myblockproblem.hh
+14
-14
14 additions, 14 deletions
dune/tectonic/myblockproblem.hh
with
14 additions
and
14 deletions
dune/tectonic/myblockproblem.hh
+
14
−
14
View file @
d2c8d1b6
...
...
@@ -28,14 +28,14 @@ double computeEnergy(
/** \brief Base class for problems where each block can be solved with a
* modified gradient method */
template
<
class
My
ConvexProblemTypeTEMPLATE
>
class
MyBlockProblem
{
template
<
class
ConvexProblemTypeTEMPLATE
>
class
MyBlockProblem
{
public:
using
My
ConvexProblemType
=
My
ConvexProblemTypeTEMPLATE
;
using
VectorType
=
typename
My
ConvexProblemType
::
VectorType
;
using
MatrixType
=
typename
My
ConvexProblemType
::
MatrixType
;
using
LocalVectorType
=
typename
My
ConvexProblemType
::
LocalVectorType
;
using
LocalMatrixType
=
typename
My
ConvexProblemType
::
LocalMatrixType
;
int
static
const
block_size
=
My
ConvexProblemType
::
block_size
;
using
ConvexProblemType
=
ConvexProblemTypeTEMPLATE
;
using
VectorType
=
typename
ConvexProblemType
::
VectorType
;
using
MatrixType
=
typename
ConvexProblemType
::
MatrixType
;
using
LocalVectorType
=
typename
ConvexProblemType
::
LocalVectorType
;
using
LocalMatrixType
=
typename
ConvexProblemType
::
LocalMatrixType
;
int
static
const
block_size
=
ConvexProblemType
::
block_size
;
int
static
const
coarse_block_size
=
block_size
;
/** \brief Solves one local system using a modified gradient method */
...
...
@@ -45,7 +45,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
static
const
int
block_size
=
coarse_block_size
;
using
LocalMatrixType
=
typename
MyBlockProblem
<
My
ConvexProblemType
>::
LocalMatrixType
;
typename
MyBlockProblem
<
ConvexProblemType
>::
LocalMatrixType
;
using
MatrixType
=
Dune
::
BCRSMatrix
<
typename
Linearization
::
LocalMatrixType
>
;
using
VectorType
=
...
...
@@ -59,7 +59,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
};
MyBlockProblem
(
Dune
::
ParameterTree
const
&
parset
,
My
ConvexProblemType
const
&
problem
)
ConvexProblemType
const
&
problem
)
:
parset
(
parset
),
problem
(
problem
)
{
bisection
=
Bisection
(
0.0
,
// acceptError: Stop if the search interval has
// become smaller than this number
...
...
@@ -200,7 +200,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
Dune
::
ParameterTree
const
&
parset
;
// problem data
My
ConvexProblemType
const
&
problem
;
ConvexProblemType
const
&
problem
;
// commonly used minimization stuff
Bisection
bisection
;
...
...
@@ -209,8 +209,8 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
};
/** \brief Solves one local system using a scalar Gauss-Seidel method */
template
<
class
My
ConvexProblemTypeTEMPLATE
>
class
MyBlockProblem
<
My
ConvexProblemTypeTEMPLATE
>::
IterateObject
{
template
<
class
ConvexProblemTypeTEMPLATE
>
class
MyBlockProblem
<
ConvexProblemTypeTEMPLATE
>::
IterateObject
{
friend
class
MyBlockProblem
;
protected:
...
...
@@ -219,7 +219,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
* \param problem The problem including quadratic part and nonlinear part
*/
IterateObject
(
Dune
::
ParameterTree
const
&
parset
,
Bisection
const
&
bisection
,
My
ConvexProblemType
const
&
problem
)
ConvexProblemType
const
&
problem
)
:
problem
(
problem
),
bisection
(
bisection
),
localsteps
(
parset
.
get
<
size_t
>
(
"localsolver.steps"
))
{}
...
...
@@ -283,7 +283,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
private
:
// problem data
My
ConvexProblemType
const
&
problem
;
ConvexProblemType
const
&
problem
;
// commonly used minimization stuff
Bisection
bisection
;
...
...
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