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
467ed8d4
Commit
467ed8d4
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
31b7ee33
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
src/myblockproblem.hh
+5
-7
5 additions, 7 deletions
src/myblockproblem.hh
with
5 additions
and
7 deletions
src/myblockproblem.hh
+
5
−
7
View file @
467ed8d4
...
...
@@ -25,7 +25,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
typedef
typename
MyConvexProblemType
::
LocalVectorType
LocalVectorType
;
typedef
typename
MyConvexProblemType
::
LocalMatrixType
LocalMatrixType
;
static
cons
t
in
t
block_size
=
MyConvexProblemType
::
block_size
;
static
int
const
block_size
=
MyConvexProblemType
::
block_size
;
/** \brief Solves one local system using a modified gradient method */
class
IterateObject
;
...
...
@@ -56,27 +56,25 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
* \param problem The problem including quadratic part and nonlinear part
*/
IterateObject
(
const
Bisection
&
bisection
,
MyConvexProblemType
&
problem
)
:
problem
(
problem
),
bisection
(
bisection
)
{}
;
:
problem
(
problem
),
bisection
(
bisection
)
{}
public
:
/** \brief Set the current iterate */
void
setIterate
(
VectorType
&
u
)
{
this
->
u
=
u
;
return
;
}
;
}
/** \brief Update the i-th block of the current iterate */
void
updateIterate
(
const
LocalVectorType
&
ui
,
int
i
)
{
u
[
i
]
=
ui
;
return
;
}
;
}
/** \brief Minimi
z
e a local problem using a
scalar Gauss-Seidel
method
/** \brief Minimi
s
e a local problem using a
modified gradient
method
* \param[out] ui The solution
* \param m Block number
* \param ignore Set of degrees of freedom to leave untouched
*
* \return The minimizer of the local functional in the variable ui
*/
void
solveLocalProblem
(
LocalVectorType
&
ui
,
int
m
,
...
...
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