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
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
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
agnumpde
dune-tectonic
Commits
7a7bcc93
"git@git.imp.fu-berlin.de:podlesny/dune-tectonic.git" did not exist on "cc564534f658abe8d4f2e4d36451baeb443e3fec"
Commit
7a7bcc93
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add Hessian indices
parent
4a849137
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/tectonic/globalnonlinearity.hh
+5
-0
5 additions, 0 deletions
dune/tectonic/globalnonlinearity.hh
dune/tectonic/myblockproblem.hh
+1
-2
1 addition, 2 deletions
dune/tectonic/myblockproblem.hh
with
6 additions
and
2 deletions
dune/tectonic/globalnonlinearity.hh
+
5
−
0
View file @
7a7bcc93
...
...
@@ -27,6 +27,11 @@ class GlobalNonlinearity {
}
}
void
addHessianIndices
(
Dune
::
MatrixIndexSet
&
indices
)
const
{
for
(
size_t
i
=
0
;
i
<
indices
.
rows
();
++
i
)
indices
.
add
(
i
,
i
);
}
void
addGradient
(
VectorType
const
&
v
,
VectorType
&
gradient
)
const
{
for
(
size_t
i
=
0
;
i
<
v
.
size
();
++
i
)
{
auto
res
=
restriction
(
i
);
...
...
This diff is collapsed.
Click to expand it.
dune/tectonic/myblockproblem.hh
+
1
−
2
View file @
7a7bcc93
...
...
@@ -91,8 +91,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
// construct sparsity pattern for linearization
Dune
::
MatrixIndexSet
indices
(
problem
.
A
.
N
(),
problem
.
A
.
M
());
indices
.
import
(
problem
.
A
);
// TODO: handle smooth domain
// problem.phi.addHessianIndices(indices);
problem
.
phi
.
addHessianIndices
(
indices
);
// construct matrix from pattern and initialize it
indices
.
exportIdx
(
linearization
.
A
);
...
...
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