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
fe1509ba
Commit
fe1509ba
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Signed/unsigned types
parent
aadbd0c5
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
+1
-1
1 addition, 1 deletion
dune/tectonic/globalnonlinearity.hh
dune/tectonic/myblockproblem.hh
+4
-4
4 additions, 4 deletions
dune/tectonic/myblockproblem.hh
with
5 additions
and
5 deletions
dune/tectonic/globalnonlinearity.hh
+
1
−
1
View file @
fe1509ba
...
@@ -60,7 +60,7 @@ class GlobalNonlinearity {
...
@@ -60,7 +60,7 @@ class GlobalNonlinearity {
}
}
void
addHessianIndices
(
Dune
::
MatrixIndexSet
&
indices
)
const
{
void
addHessianIndices
(
Dune
::
MatrixIndexSet
&
indices
)
const
{
for
(
size_
t
i
=
0
;
i
<
indices
.
rows
();
++
i
)
for
(
in
t
i
=
0
;
i
<
indices
.
rows
();
++
i
)
indices
.
add
(
i
,
i
);
indices
.
add
(
i
,
i
);
}
}
...
...
This diff is collapsed.
Click to expand it.
dune/tectonic/myblockproblem.hh
+
4
−
4
View file @
fe1509ba
...
@@ -110,7 +110,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
...
@@ -110,7 +110,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
// determine truncation pattern
// determine truncation pattern
linearization
.
truncation
.
resize
(
u
.
size
());
linearization
.
truncation
.
resize
(
u
.
size
());
linearization
.
truncation
.
unsetAll
();
linearization
.
truncation
.
unsetAll
();
for
(
in
t
i
=
0
;
i
<
u
.
size
();
++
i
)
for
(
size_
t
i
=
0
;
i
<
u
.
size
();
++
i
)
// TODO: should ignoreNodes be truncated as well?
// TODO: should ignoreNodes be truncated as well?
if
(
problem
.
phi
.
regularity
(
i
,
u
[
i
])
>
1e8
)
// TODO
if
(
problem
.
phi
.
regularity
(
i
,
u
[
i
])
>
1e8
)
// TODO
linearization
.
truncation
[
i
]
=
true
;
linearization
.
truncation
[
i
]
=
true
;
...
@@ -125,7 +125,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
...
@@ -125,7 +125,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
linearization
.
A
=
0.0
;
linearization
.
A
=
0.0
;
// compute quadratic part of hessian (linearization.A += problem.A)
// compute quadratic part of hessian (linearization.A += problem.A)
for
(
in
t
i
=
0
;
i
<
problem
.
A
.
N
();
++
i
)
{
for
(
size_
t
i
=
0
;
i
<
problem
.
A
.
N
();
++
i
)
{
typename
MatrixType
::
row_type
::
ConstIterator
it
=
problem
.
A
[
i
].
begin
();
typename
MatrixType
::
row_type
::
ConstIterator
it
=
problem
.
A
[
i
].
begin
();
typename
MatrixType
::
row_type
::
ConstIterator
end
=
problem
.
A
[
i
].
end
();
typename
MatrixType
::
row_type
::
ConstIterator
end
=
problem
.
A
[
i
].
end
();
for
(;
it
!=
end
;
++
it
)
for
(;
it
!=
end
;
++
it
)
...
@@ -150,12 +150,12 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
...
@@ -150,12 +150,12 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
// apply truncation to system
// apply truncation to system
typename
Linearization
::
MatrixType
::
row_type
::
Iterator
it
;
typename
Linearization
::
MatrixType
::
row_type
::
Iterator
it
;
typename
Linearization
::
MatrixType
::
row_type
::
Iterator
end
;
typename
Linearization
::
MatrixType
::
row_type
::
Iterator
end
;
for
(
in
t
row
=
0
;
row
<
linearization
.
A
.
N
();
++
row
)
{
for
(
size_
t
row
=
0
;
row
<
linearization
.
A
.
N
();
++
row
)
{
it
=
linearization
.
A
[
row
].
begin
();
it
=
linearization
.
A
[
row
].
begin
();
end
=
linearization
.
A
[
row
].
end
();
end
=
linearization
.
A
[
row
].
end
();
for
(;
it
!=
end
;
++
it
)
{
for
(;
it
!=
end
;
++
it
)
{
int
const
col
=
it
.
index
();
int
const
col
=
it
.
index
();
for
(
in
t
i
=
0
;
i
<
it
->
N
();
++
i
)
{
for
(
size_
t
i
=
0
;
i
<
it
->
N
();
++
i
)
{
typename
Linearization
::
MatrixType
::
block_type
::
row_type
::
Iterator
typename
Linearization
::
MatrixType
::
block_type
::
row_type
::
Iterator
blockIt
=
(
*
it
)[
i
].
begin
();
blockIt
=
(
*
it
)[
i
].
begin
();
typename
Linearization
::
MatrixType
::
block_type
::
row_type
::
typename
Linearization
::
MatrixType
::
block_type
::
row_type
::
...
...
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