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
f8b446d4
Commit
f8b446d4
authored
10 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Extern] Adjust to dune-tnnmg changes
parent
5ffb8bbb
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
-10
6 additions, 10 deletions
dune/tectonic/myblockproblem.hh
with
6 additions
and
10 deletions
dune/tectonic/myblockproblem.hh
+
6
−
10
View file @
f8b446d4
...
...
@@ -7,11 +7,9 @@
#include
<dune/common/nullptr.hh>
#include
<dune/common/parametertree.hh>
// Just for debugging
#include
"dune/solvers/computeenergy.hh"
#include
<dune/fufem/arithmetic.hh>
#include
<dune/solvers/common/interval.hh>
#include
<dune/solvers/computeenergy.hh>
#include
<dune/tnnmg/problem-classes/bisection.hh>
#include
"globalnonlinearity.hh"
...
...
@@ -19,13 +17,6 @@
#include
"mydirectionalconvexfunction.hh"
#include
"ellipticenergy.hh"
/* Just for debugging */
template
<
class
Matrix
,
class
Vector
>
double
computeEnergy
(
Matrix
const
&
A
,
Vector
const
&
x
,
Vector
const
&
b
,
GlobalNonlinearity
<
Matrix
,
Vector
>
const
&
phi
)
{
return
computeEnergy
(
A
,
x
,
b
)
+
phi
(
x
);
}
/** \brief Base class for problems where each block can be solved with a
* modified gradient method */
template
<
class
ConvexProblem
>
class
MyBlockProblem
{
...
...
@@ -73,6 +64,11 @@ template <class ConvexProblem> class MyBlockProblem {
return
s
;
}
double
computeEnergy
(
const
VectorType
&
v
)
const
{
return
0.0
;
// FIXME
// return ::computeEnergy(problem_.A, v, problem_.f) + problem_.phi(v);
}
void
projectCoarseCorrection
(
VectorType
const
&
u
,
typename
Linearization
::
VectorType
const
&
v
,
VectorType
&
projected_v
,
...
...
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