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
41e7fbc3
Commit
41e7fbc3
authored
12 years ago
by
Elias Pipping
Committed by
Elias Pipping
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Reading from the parameter set is expensive!
parent
3793cea1
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
+6
-5
6 additions, 5 deletions
dune/tectonic/myblockproblem.hh
with
6 additions
and
5 deletions
dune/tectonic/myblockproblem.hh
+
6
−
5
View file @
41e7fbc3
...
@@ -264,7 +264,9 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
...
@@ -264,7 +264,9 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
*/
*/
IterateObject
(
Dune
::
ParameterTree
const
&
parset
,
Bisection
const
&
bisection
,
IterateObject
(
Dune
::
ParameterTree
const
&
parset
,
Bisection
const
&
bisection
,
MyConvexProblemType
const
&
problem
)
MyConvexProblemType
const
&
problem
)
:
parset
(
parset
),
problem
(
problem
),
bisection
(
bisection
)
{}
:
problem
(
problem
),
bisection
(
bisection
),
localsteps
(
parset
.
get
<
size_t
>
(
"localsolver.steps"
))
{}
public
:
public
:
/** \brief Set the current iterate */
/** \brief Set the current iterate */
...
@@ -323,14 +325,11 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
...
@@ -323,14 +325,11 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
ignore_component
);
ignore_component
);
LocalVectorType
correction
;
LocalVectorType
correction
;
Dune
::
minimise
(
localJ
,
ui
,
parset
.
get
<
size_t
>
(
"localsolver.steps"
),
Dune
::
minimise
(
localJ
,
ui
,
localsteps
,
bisection
);
bisection
);
}
}
}
}
private
:
private
:
Dune
::
ParameterTree
const
&
parset
;
// problem data
// problem data
MyConvexProblemType
const
&
problem
;
MyConvexProblemType
const
&
problem
;
...
@@ -340,6 +339,8 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
...
@@ -340,6 +339,8 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
// state data for smoothing procedure used by:
// state data for smoothing procedure used by:
// setIterate, updateIterate, solveLocalProblem
// setIterate, updateIterate, solveLocalProblem
VectorType
u
;
VectorType
u
;
size_t
const
localsteps
;
};
};
#endif
#endif
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